DEV Community


Discussion on: Unit testing: best practices

ice_lenor profile image
Elena Author

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.

rafalpienkowski profile image
Rafal Pienkowski

Exactly, this was my thought ;)

Forem Open with the Forem app