Working Effectively with Unit Tests by Jay Fields

Working Effectively with Unit Tests by Jay Fields

Author:Jay Fields
Language: eng
Format: mobi, epub
Publisher: leanpub.com
Published: 2014-05-17T16:00:00+00:00


By combining a single Sociable Unit Test with several Solitary Unit Tests utilizing sparsely specified mocks we’re able to cover all functionality while avoiding cascading failures, accidental coupling, and overly verbose tests.

Comparison

I couldn’t bring myself to end this chapter without providing a few examples for comparison. I think it’s worth noting that all of the Solitary Unit Tests combined are less lines of code than the original individual test with 4 rentals.

The (Previously Unwritten) Original Test with Four Rentals



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.