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
期刊:
影响因子:
--
通讯作者:
G. Meszaros
中科院分区:
文献类型:
--
作者:
G. Meszaros
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.