November 2002
Intermediate to advanced
240 pages
5h 9m
English
We can’t leave xUnit without visiting TestSuite. The end of our file, where we invoke all of the tests, is looking pretty ratty:
print TestCaseTest("testTemplateMethod").run().summary()
print TestCaseTest("testResult").run().summary()
print TestCaseTest("testFailedResultFormatting").run().summary()
print TestCaseTest("testFailedResult").run().summary()
Duplication is always a bad thing, unless you look at it as motivation to find the missing design element. Here ...