Paper record

W1499546067

Endo-testing: unit testing with mock objects

Tim Mackinnon, Steve Freeman, Philip S. Craig

Year
2001
Venue
Addison-Wesley Longman Publishing Co., Inc. eBooks
References
5
Cited by
207

Details and counts from OpenAlex.

Abstract

Unit testing is a fundamental practice in Extreme Programming, but most non-trivial code is difficult to test in isolation. It is hard to avoid writing test suites that are complex, incomplete, and difficult to maintain and interpret. Using Mock Objects for unit testing improves both domain code and test suites. They allow unit tests to be written for everything, simplify test structure, and avoid polluting domain code with testing infrastructure.