Member-only story

Improve your unit testing practices

Some ideas for developers to improve their way of writing tests

Kong To
6 min read9 hours ago
Fakes over Mocks

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 :

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.

  1. Any test must come with a clear intention, thus they should have the proper naming. A test should…

--

--

Kong To
Kong To

Written by Kong To

Architect, Engineer, Developer, Code, Code Crafter... whatever but code quality matters

No responses yet