Re:Goodbye, Clean Code
by therealdrag0 on Wednesday January 15, 2020 @12:30PM
(#22056191)
I'm not sure I agree. I like to move all setup code to helper methods so that my tests are just a few lines
This allows the reader to easily see which workflows are actually tested. If the reader is interested in implementations the utility code is one click away and usually only needs to be looked at once to be completely understood. The test bodies themselves however have many flavors for many work-flows so getting rid of the repetition is critical to highlight the specific nature of individual tests.
[ Parent
| on HN ]
There are no comments on this comment yet.