TLDR · PROGRAMMING, DESIGN & DATA SCIENCE
TREAT TEST CODE LIKE PRODUCTION CODE
Summary from the TLDR newsletter
The same coding standards applied to production code should also be applied to test code. Test code needs to be readable, well-factored, and reviewed, just like production code. Good code makes it easier for people working on the code to read, understand, and update. Applying coding standards and design principles to test code makes maintainability easier.