首页> 外国专利> System and method for generating software unit tests simultaneously with API documentation

System and method for generating software unit tests simultaneously with API documentation

机译:与API文档同时生成软件单元测试的系统和方法

摘要

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.
机译:一种系统和方法可以与API文档同时生成用于源代码的单元测试。系统可能会收到包含几个注释部分的源代码文件。每个注释部分可以包括对源代码单元的描述,例如类,方法,成员变量等。该描述还可以对应于源代码单元的输入和输出参数。该系统和方法可以解析源代码文件以确定与该单元描述相对应的源代码功能类型,并将该单元描述复制到与该功能类型相对应的单元测试存根。然后,开发人员或另一个模块可以完成单元测试存根,以将每个存根转换为与源代码单元相对应的完整单元测试。另外,该系统和方法可以执行单元测试并为每个单元测试生成测试结果指示。

著录项

  • 公开/公告号US9043759B1

    专利类型

  • 公开/公告日2015-05-26

    原文格式PDF

  • 申请/专利权人 SCOTT LININGER;

    申请/专利号US201113205828

  • 发明设计人 SCOTT LININGER;

    申请日2011-08-09

  • 分类号G06F9/44;G06F11/36;

  • 国家 US

  • 入库时间 2022-08-21 15:18:58

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号