Posted by cadsmith on February 25, 2008
“xUnit Test Patterns: Refactoring Test Code”, Meszaros, 2007, 944pp, discusses reuseable software design patterns for testing. This begins with agile techniques, and proceeds through refactoring to automation unit testing. The test-driven development process is detailed with principles to observe, and ways to reduce bad object-oriented coding smells and to minimize the test effort and costs while maximizing benefits. Scripting using the same language as the system under test is termed xUnit. Tests are written, parameterized, converted to utilities, given the ability to verify their own correct operation, and correlated to recognize dependencies on other tests in order to self-organize their execution. Many code samples are shown. Databases can be added to handle complexity if necessary. Test automation maturity is derived based on CMM. Book site.