首页> 外文会议>2017 IEEE/ACM 12th International Workshop on Automation of Software Testing >Generating Unit Tests with Structured System Interactions
【24h】

Generating Unit Tests with Structured System Interactions

机译:具有结构化系统交互的单元测试

获取原文
获取原文并翻译 | 示例

摘要

There is a large body of work in the literature about automatic unit tests generation, and many successful results have been reported so far. However, current approaches target library classes, but not full applications. A major obstacle for testing full applications is that they interact with the environment. For example, they access files on the hard drive or establish connections to remote servers. Thoroughly testing such applications requires tests that completely control the interactions between the application and its environment. Recent techniques based on mocking enable the generation of tests which include environment interactions, however, generating the right type of interactions is still an open problem. In this paper, we describe a novel approach which addresses this problem by enhancing search-based testing with complex test data generation. Experiments on an artificial system show that the proposed approach can generate effective unit tests. Compared with current techniques based on mocking, we generate more robust unit tests which achieve higher coverage and are, arguably, easier to read and understand.
机译:关于自动单元测试生成的文献很多,到目前为止,已经报道了许多成功的结果。但是,当前的方法针对的是库类,而不是完整的应用程序。测试完整应用程序的主要障碍是它们与环境交互。例如,他们访问硬盘驱动器上的文件或建立与远程服务器的连接。全面测试此类应用程序需要进行测试以完全控制应用程序及其环境之间的交互。基于模拟的最新技术可以生成包括环境交互作用的测试,但是,生成正确类型的交互作用仍然是一个未解决的问题。在本文中,我们描述了一种新颖的方法,该方法通过使用复杂的测试数据生成来增强基于搜索的测试来解决此问题。在人工系统上进行的实验表明,该方法可以生成有效的单元测试。与基于模拟的当前技术相比,我们生成了更健壮的单元测试,该单元测试具有更高的覆盖率,并且可以说更易于阅读和理解。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号