首页> 外国专利> METHOD AND DEVICE FOR RETRIEVING TEST CASE BASED ON CODE COVERAGE

METHOD AND DEVICE FOR RETRIEVING TEST CASE BASED ON CODE COVERAGE

机译:基于代码覆盖率的测试案例检索方法和装置

摘要

Embodiments of the present invention relate to a method and a device for obtaining test cases based on a code coverage. The method comprises creating a mapping between source code and test cases based on a code coverage; and obtaining, in response to a change in the source code, the test cases for the change based on the mapping. The device comprises: a creating module configured to create a mapping between source code and test cases based on a code coverage; and an obtaining module configured to, in response to a change in the source code, obtain a test case for the change based on the mapping. Through such method and device, the embodiments of the present invention can obtain test cases as few as possible to cover the changed source code.
机译:本发明实施例涉及一种基于代码覆盖率获得测试用例的方法和装置。该方法包括基于代码覆盖率在源代码和测试用例之间创建映射;以及响应于源代码的更改,基于映射获取更改的测试用例。该设备包括:创建模块,被配置为基于代码覆盖率在源代码和测试用例之间创建映射;以及获取模块,其被配置为响应于所述源代码的改变,基于所述映射来获得针对所述改变的测试用例。通过这样的方法和设备,本发明的实施例可以获得尽可能少的测试用例以覆盖改变后的源代码。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号