DEV Community

Discussion on: Unit testing: best practices

Collapse
 
ice_lenor profile image
Elena

Hey Rafal, thank you!
The importance of testing depends on business priorities. After all, tests consume time, and sometimes the business decides to stay on the side of development speed, rather than quality.

Sometimes, when this happens, the code becomes untestable and also harder to change, but at this time refactoring and tests cost even more. They are a long-term investment. This is a good time to make the statement about the future costs you were talking about, and start to introduce testing from the most critical parts.

Collapse
 
rafalpienkowski profile image
Rafal Pienkowski

Exactly, this was my thought ;)