arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1711.05082cs.SE
收藏

测试驱动开发对程序设计和测试覆盖率影响的比较案例研究

A Comparative Case Study on the Impact of Test-Driven Development on Program Design and Test Coverage

Maria Siniaalto, Pekka Abrahamsson

摘要:

测试驱动开发(TDD)是一种编程技术,其中测试在源代码之前编写。TDD被认为是最基本的实践之一,能够以敏捷和迭代的方式开发软件。文献和实践都表明,TDD实践产生了几个好处。从本质上说,TDD导致了软件设计的改进,这对系统的可维护性和进一步开发产生了巨大的影响。TDD对程序设计的影响很少受到研究人员的关注。本文报告了三个软件开发项目的比较案例研究的结果,TDD对程序设计的影响是使用面向对象的度量。结果表明,TDD对程序设计的影响并不像预期的那么明显,但测试覆盖率明显优于迭代测试后开发。

英文摘要:

Test-driven development (TDD) is a programming technique in which the tests are written prior to the source code. It is proposed that TDD is one of the most fundamental practices enabling the development of software in an agile and iterative manner. Both the literature and practice suggest that TDD practice yields several benefits. Essentially, it is claimed that TDD leads to an improved software design, which has a dramatic impact on the maintainability and further development of the system. The impact of TDD on program design has seldom come under the researchers' focus. This paper reports the results from a comparative case study of three software development projects where the effect of TDD on program design was measured using object-oriented metrics. The results show that the effect of TDD on program design was not as evident as expected, but the test coverage was significantly superior to iterative test-last development.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑