Test coverage is specifically to ensure that the changes you make within your code don't result in breakages to your expected behaviors. If you cover the expected behaviors (both success and failure) of your code, you can confidently make changes to that code, because any breaking changes will create failures in your tests
Front end developer specialising in JavaScript and React. Experienced in all aspects of modern front end development. Passionate about making accessible, secure and performant software.
The shorter answer is
Test coverage is specifically to ensure that the changes you make within your code don't result in breakages to your expected behaviors. If you cover the expected behaviors (both success and failure) of your code, you can confidently make changes to that code, because any breaking changes will create failures in your tests
That's right. A good test suite is the best defence.