首页> 外文OA文献 >Disposable Testing: Avoiding Maintenance of Generated Unit Tests by Throwing Them Away
【2h】

Disposable Testing: Avoiding Maintenance of Generated Unit Tests by Throwing Them Away

机译:一次性测试:通过抛弃它来避免维护生成的单元测试

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

Developers write unit tests together with program code, and then maintain these tests as the program evolves. Since writing good tests can be difficult and tedious, unit tests can so be generated automatically. However, maintaining these tests(e.g., when APIs change, or, when tests represent outdated and changed behavior), is still a manual task. Because automatically generated tests may have no clear purpose other than covering code, maintaining them may be more difficult than maintaining manually written tests. Could this maintenance be avoided by simply generating new tests after each change, and disposing the old ones? We propose disposable testing: Tests are generated to reveal any behavioral differences caused by a code change, and are thrown away once the developer confirms whether these changes were intended or not. However, this idea raises several research challenges: First, are standard automated test generation techniques good enough to produce tests that may berelied upon to reveal changes as effectively as an incrementally built regression test suite? Second, does disposable testing reduce the overall effort, or would developers need to inspect more generated tests compared to just maintaining existing ones?ud
机译:开发人员将单元测试与程序代码一起编写,然后在程序演变时维护这些测试。由于编写好的测试可能很困难且乏味,因此可以自动生成单元测试。但是,维护这些测试(例如,当API更改时,或者当测试表示过时和更改的行为时),仍然是手动任务。由于自动生成的测试除了覆盖代码外可能没有其他明确的目的,因此维护它们可能比维护手动编写的测试更加困难。是否可以通过在每次更改后简单地生成新测试并处置旧测试来避免维护?我们建议进行一次性测试:生成测试以揭示由代码更改引起的任何行为差异,一旦开发人员确认这些更改是否有意将其丢弃。但是,这种想法提出了一些研究挑战:首先,标准的自动化测试生成技术是否足以生成可像增量构建回归测试套件一样有效地揭示变更的测试?其次,一次性测试是否会减少整体工作量,还是与仅维护现有测试相比,开发人员是否需要检查更多生成的测试?

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号