【24h】

Automatic Generation of Effective Unit Tests based on Code Behaviour

机译:根据代码行为自动生成有效的单位测试

获取原文

摘要

A large amount of test cases is very useful to check the correctness of a software system while it is developed. Often a considerable time is dedicated by human programmers to designing effective test cases. This paper proposes an approach for automatically generating test cases tailored to the characteristics of the code under test. For this, the classes of a software system to be tested are characterised by a static code analysis aiming at summarising and representing their behaviour. As test cases check the behaviour of code, classes that exhibit a close behaviour may be checked using similar test cases. Therefore, in the approach proposed, for classes having a comparable behaviour, test cases are generated by taking as a template the test cases available for one of the classes among the similar ones. The approach has been assessed on a few open source projects and has proved to be viable for generating applicable and effective test cases for the classes.
机译:大量的测试用例对于在开发时检查软件系统的正确性非常有用。通常是人类程序员专用于设计有效的测试用例的时间。本文提出了一种自动生成针对被测守则特性的测试用例的方法。为此,要测试的软件系统的类别的特征在于静态代码分析,其旨在总结和代表其行为。作为测试用例检查代码的行为,可以使用类似的测试用例检查表现出密切行为的类。因此,在提出的方法中,对于具有可比行为的类,通过作为模板来生成测试用例,该模板可用于类似于类似的类的类。该方法已在几个开源项目上进行评估,并证明是为了为课程产生适用和有效的测试案件。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号