3 ms·
Full agree, with one additional detail: Tests are code too. Like the code being tested, they can be shitty at times, but they are still code and should be tre
by Groxx 4y ago
Full agree, with one additional detail:
Tests are code too. Like the code being tested, they can be shitty at times, but they are still code and should be treated with the same level of care.
Which is not to say "your tests should be as DRY as a desert". That's frequently a poor fit for test code's lifecycle. But it does mean you shouldn't do stuff that wouldn't pass code review elsewhere, just because "it's just a test". Someone later has to read, understand, and maintain that code - treat it as such.