It is one of the famous excuses for developer not writing unit test.
Presented in KTM JS, here I have discussed on what other benefits dev can achieve from unit test apart from problem findings.
5. Should you be your own judge?
Do you really need to
write a code to test a code
when you already have a team
dedicated to checking for problems?
6. Unit Test
A unit test is code that tests as small a piece of functionality (the unit) as possible,
in isolation.
Tests ensure:
1. The code meets expectations and specifications: Does what it says it should do.
2. The code continues to meet expectations over time: Avoiding regression.
6
7. 7
we don’t do testing for
production,
we make
code predictable,
scalable &
changeable
tackle the defects in user
workflow,
in the full spectrum of application
functionality
10. Confidence is a key
10
Changing already tested code is both risky and costly.
If we have unit tests in place, then we can proceed for refactoring confidently.