Changes between Initial Version and Version 1 of Design/KeepTestToolsOutOfFixtures

Show
Ignore:
Timestamp:
05/09/2013 10:26:23 PM (12 months ago)
Author:
glyph
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Design/KeepTestToolsOutOfFixtures

    v1 v1  
     1If you have to add some testing logic, like something that makes a custom assertion, or something that sets up some state for use by more than one test case, try to avoid adding methods to test cases.  Doing this increases coupling and makes it harder to use those tools over time. 
     2 
     3For example, if you put a bunch of useful utility assertion methods and a useful `setUp` into the same class, then it's difficult to use the assertion methods in a test method which doesn't want to do all the same set up (for example, a test for one of the tasks performed in the test setup). 
     4 
     5-glyph