XUnit test patterns and smells: improving the ROI of test code

XUnit test patterns and smells: improving the ROI of test code
复制标题

XUnit 测试模式和气味:提高测试代码的投资回报率

DOI:
--
复制
发表时间:
2010
期刊:
SPLASH/OOPSLA Companion
影响因子:
--
通讯作者:
G. Meszaros
G. Meszaros
中科院分区:
--
文献类型:
--
作者:
G. Meszaros

文献摘要

被引文献

相似文献

高质量的自动化单元测试是关键开发实践之一,它通过减少代码中引入的错误数量来实现软件的增量开发和交付。但编写大量测试是不够的,因为这些测试需要在软件的整个生命周期中进行维护。这一维护成本可能很快就会超过测试带来的好处。 XUnit是单元测试框架家族的总称,现在几乎所有编程语言都可以使用这些框架。JUnit、NUnit、MsTest和CppUnit是xUnit家族中一些比较知名的成员。本教程为参与者提供了气味和模式的词汇表,可以用来推断他们的xUnit测试代码的质量,并提供了一组可用于消除气味的可重用测试代码设计模式。参与者将能够编写更容易理解和维护的测试。
High quality automated unit tests are one of the key development practices that enable incremental development and delivery of software by reducing the number of bugs introduced into code as it is evolved. But writing lots of tests is not enough as the tests need to be maintained over the life of the software. This maintenance cost can quickly outweigh the benefits provided by the tests. XUnit is the generic name for the family of unit test frameworks that are now available in almost every programming language. JUnit, NUnit, MsTest and CppUnit are some of the better known members of the xUnit family. This tutorial provides the participants with a vocabulary of smells and patterns with which to reason about the quality of their xUnit test code and a set of reusable test code design patterns that can be used to eliminate the smells. Participants will be able to write tests that are easier to understand and maintain.