Member-only story
Improve your unit testing practices
Some ideas for developers to improve their way of writing tests
Following the article writing unit tests to enforce modularity of the software codebase, I would like to delve a bit deeper in testing practices for developers.
Related articles :
- Green from the outside, red inside — further than 100% code coverage
- Testing Terminology, testing vocabularies and definitions reference
There many best practices that have been accumulated over time. There are some that are no more fit, others are still good to keep.
It’s just a matter of usefulness and relevancy according to the context and challenges that your team is facing. That being said, you may skip some of them, but still you need to acknowledge and keep them in mind. They may be for the good, but it isn’t that easy to apply to them all at once.
Recommendations
I would recommend to just stick to some rules and principles that could help you making the right decision when it comes to best practices. To keep it simple, here is a list of 10 best practices for daily basis coding work.
- Any test must come with a clear intention, thus they should have the proper naming. A test should…