发明申请
US20090271770A1 METHOD, SYSTEM, AND COMPUTER PROGRAM PRODUCT FOR GENERATING UNIT TESTING SCRIPTS
审中-公开
用于生成单元测试脚本的方法,系统和计算机程序产品
- 专利标题: METHOD, SYSTEM, AND COMPUTER PROGRAM PRODUCT FOR GENERATING UNIT TESTING SCRIPTS
- 专利标题(中): 用于生成单元测试脚本的方法,系统和计算机程序产品
-
申请号: US12110401申请日: 2008-04-28
-
公开(公告)号: US20090271770A1公开(公告)日: 2009-10-29
- 发明人: Yarden Nir-Buchbinder , Dan Pelleg , Orna Raz-Pelleg
- 申请人: Yarden Nir-Buchbinder , Dan Pelleg , Orna Raz-Pelleg
- 申请人地址: US NY ARMONK
- 专利权人: INTERNATIONAL BUSINESS MACHINES CORPORATION
- 当前专利权人: INTERNATIONAL BUSINESS MACHINES CORPORATION
- 当前专利权人地址: US NY ARMONK
- 主分类号: G06F9/45
- IPC分类号: G06F9/45
摘要:
A method, system, and computer program product are provided for generating unit testing scripts. The method includes receiving programming code having a condition expressed therein, and transforming the code by wrapping the condition into a mock function. The mock function receives a Boolean argument as an input and provides a Boolean value as an output irrespective of a pre-transformed input and a pre-transformed output of the condition. The Boolean value is capable of selectively being the Boolean argument received as the input or a different value specified by a user. The method further includes receiving a user input specifying a behavior relating to how a return value is generated for the mock function. The Boolean value is provided in accordance with the specified behavior. At least one pre-transformation output of the condition prior to the transforming step is direct-function independent.