单元测试集的构成探讨
Exploring the Composition of Unit Test Suites
摘要:
在敏捷软件开发中,测试代码对整个源代码的大小有很大的贡献。作为验证和文档方面的宝贵资产,需要很好地理解测试套件的组成,以便确定进一步发展的机会和弱点。在本文中,我们认为,可视化的结构特征是一个可行的手段,以支持探索的测试套件。由于对一组有限的关键测试设计原则的普遍认同,这种可视化相对容易解释。特别是,我们提出了可视化,支持测试人员(一)定位测试用例;(二)检查测试代码和生产代码之间的关系;(三)研究测试用例的组成和依赖关系。通过两个案例研究,我们展示了视觉模式如何帮助识别关键的测试套件特性。这种方法形成了帮助开发人员建立对测试套件的理解的第一步,而不仅仅是代码阅读。
英文摘要:
In agile software development, test code can considerably contribute to the overall source code size. Being a valuable asset both in terms of verification and documentation, the composition of a test suite needs to be well understood in order to identify opportunities as well as weaknesses for further evolution. In this paper, we argue that the visualization of structural characteristics is a viable means to support the exploration of test suites. Thanks to general agreement on a limited set of key test design principles, such visualizations are relatively easy to interpret. In particular, we present visualizations that support testers in (i) locating test cases; (ii) examining the relation between test code and production code; and (iii) studying the composition of and dependencies within test cases. By means of two case studies, we demonstrate how visual patterns help to identify key test suite characteristics. This approach forms the first step in assisting a developer to build up understanding about test suites beyond code reading.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。