System and method for generating software unit tests simultaneously with API documentation
US9043759B1 · kind B1 · utility
Assignee
Inventor
Key dates
| Filing date | Aug 9, 2011 |
| Grant date | May 26, 2015 |
| Priority date | — |
| Expiry date | Dec 7, 2032 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06F11/3684
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
A system and method may generate unit tests for source code concurrently with API documentation. The system may receive a source code file including several comments sections. Each comments section may include a description of a source code unit such as a class, method, member variable, etc. The description may also correspond to input and output parameters the source code unit. The system and method may parsing the source code file to determine a source code function type corresponding to the unit description and copy the unit description to a unit test stub corresponding to the function type. A developer or another module may then complete the unit test stub to transform each stub into a complete unit test corresponding to the source code unit. Additionally, the system and method may execute the unit test and generate a test result indication for each unit test.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.