DEV Community

Discussion on: How would you convince your company to implement unit tests?

Collapse
 
delbetu profile image
M Bellucci • Edited

Sorry I didn't answer your question.
I would start writing my own unit test.
People will start making comments against them in your PRs
And there you can point them to the literature, or talks around this topic.

A good tip for writing easily isolated tests is:
1- Search in the code for classes which have no dependencies and write a spec for it.
2- If you see a repeated behavior in two different classes Apply the Extract class refactor and create an isolated test for this new class.