首页> 外文会议>IEEE/ACM International Workshop on Automation of Software Test >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 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号