|
|
|
|
|
by AlexandrB
765 days ago
|
|
The problem with refactoring test code is twofold: 1. It can make it harder to see what's actually being tested if there are too many layers of abstraction in the test. 2. Complex test code can have significant bugs of its own that can result in false passes. What tests the test code? Thus I generally see repetitive or copy/pasted test code as a necessary evil a lot of the time. |
|
I now find it is best to be very explicit in the individual test code about what the conditions are of that specific test.