Added by Erik Drolshammer, last edited by Erik Drolshammer on Mar 20, 2009

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

Single-responsibility principle (SRP) : A test should have only one reason to change. Test code (as well as regular code) is then easier to refactor and easier to maintain. These attributes are by themselves enticing. Further, tests should be structured in such a way that if one test fails you know exactly where the problem is. This simplifies debugging, since the error message produced by the failed test explains what failed in a precise manner.

All content on this wiki is licensed under a Creative Commons Attribution 3.0 Unported License.