首页> 外文期刊>Software Testing, Verification and Reliability >Leveraging metamorphic testing to automatically detect inconsistencies in code generator families
【24h】

Leveraging metamorphic testing to automatically detect inconsistencies in code generator families

机译:利用变形测试自动检测代码生成器系列中的不一致之处

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

摘要

Generative software development has paved the way for the creation of multiple code generators that serve as a basis for automatically generating code to different software and hardware platforms. In this context, the software quality becomes highly correlated to the quality of code generators used during software development. Eventual failures may result in a loss of confidence for the developers, who will unlikely continue to use these generators. It is then crucial to verify the correct behaviour of code generators in order to preserve software quality and reliability. In this paper, we leverage the metamorphic testing approach to automatically detect inconsistencies in code generators via so-called "metamorphic relations". We define the metamorphic relation (i.e., test oracle) as a comparison between the variations of performance and resource usage of test suites running on different versions of generated code. We rely on statistical methods to find the threshold value from which an unexpected variation is detected. We evaluate our approach by testing a family of code generators with respect to resource usage and performance metrics for five different target software platforms. The experimental results show that our approach is able to detect, among 95 executed test suites, 11 performance and 15 memory usage inconsistencies.
机译:生成式软件开发为创建多个代码生成器铺平了道路,这些代码生成器是自动为不同软件和硬件平台生成代码的基础。在这种情况下,软件质量与软件开发期间使用的代码生成器的质量高度相关。最终的失败可能会导致开发人员失去信心,他们不太可能继续使用这些生成器。然后,至关重要的是验证代码生成器的正确行为,以保持软件质量和可靠性。在本文中,我们利用变形测试方法通过所谓的“变形关系”自动检测代码生成器中的不一致情况。我们将变质关系(即测试Oracle)定义为在生成的代码的不同版本上运行的测试套件的性能变化和资源使用之间的比较。我们依靠统计方法来找到检测到意外变化的阈值。我们通过针对五个不同目标软件平台的资源使用和性能指标测试一系列代码生成器来评估我们的方法。实验结果表明,我们的方法能够检测95个执行的测试套件中的11个性能和15个内存使用不一致。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号