首页> 外文会议>European Conference on Software Maintenance and Reengineering >Test Blueprints - Exposing Side Effects in Execution Traces to Support Writing Unit Tests
【24h】

Test Blueprints - Exposing Side Effects in Execution Traces to Support Writing Unit Tests

机译:测试蓝图 - 在执行迹线中暴露副作用,以支持写入单元测试

获取原文

摘要

Writing unit tests for legacy systems is a key maintenance task. When writing tests for object-oriented programs, objects need to be set up and the expected effects of executing the unit under test need to be verified. If developers lack internal knowledge of a system, the task of writing tests is non-trivial. To address this problem, we propose an approach that exposes side effects detected in example runs of the system and uses these side effects to guide the developer when writing tests. We introduce a visualization called Test Blueprint, through which we identify what the required fixture is and what assertions are needed to verify the correct behavior of a unit under test. The dynamic analysis technique that underlies our approach is based on both tracing method executions and on tracking the flow of objects at runtime. To demonstrate the usefulness of our approach we present results from two case studies.
机译:写入单元测试的遗留系统是一个关键的维护任务。在编写面向对象的程序的测试时,需要设置对象,并且需要验证正在测试的单位的预期效果。如果开发人员缺乏系统内部知识,则写作测试的任务是非微不足道的。为了解决这个问题,我们提出了一种暴露在系统的示例运行中检测到的副作用的方法,并在写入测试时使用这些副作用来引导开发人员。我们介绍一个名为Test蓝图的可视化,通过,我们确定所需的夹具是什么以及需要哪些断言来验证被测单元的正确行为。利用我们的方法的动态分析技术基于跟踪方法执行以及在运行时在运行时跟踪对象流。为了展示我们方法的有用性,我们提出了两种案例研究的结果。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号