Jump to ratings and reviews
Rate this book

Eradicating Non-Determinism in Tests

Rate this book
An automated regression suite can play a vital role on a software project, valuable both for reducing defects in production and essential for evolutionary design. In talking with development teams I've often heard about the problem of non-deterministic tests—tests that sometimes pass and sometimes fail. Left uncontrolled, non-deterministic tests can completely destroy the value of an automated regression suite. In this article I outline how to deal with non-deterministic tests. Initially quarantine helps to reduce their damage to other tests, but you still have to fix them soon. Therefore I discuss treatments for the common causes for non-determinism: lack of isolation, asynchronous behavior, remote services, time, and resource leaks.

ebook

First published April 14, 2011

25 people want to read

About the author

Martin Fowler

47 books1,102 followers
Martin Fowler (b. 1963) is a software engineer, Chief Scientist at ThoughtWorks, and an outspoken advocate for best practices in enterprise software design, particularly in regard to agile software development methodologies, including extreme programming.

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
0 (0%)
4 stars
0 (0%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 of 1 review
Profile Image for Keith.
465 reviews261 followers
Read
August 20, 2015
I'm not sure I understand enough about threaded programming in the first place to make full use of this, so I'm not rating it. It does seem like something I may turn back to if and when confronted with a real-world need, though.
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.