Are Your Scenarios Sufficient?

Often it’s difficult to tell whether the characterization tests that you’ve written cover enough of the functionality of the application to give you confidence to go in and make changes safely. There are some tools that can help you decide how safe you should really be feeling. The last thing we want is a false sense of security leading to uncaught regressions being delivered to our customer.

Code Coverage

Code coverage tools allow us to discover which specific lines of code in the system were executed during a test. When you are starting to add tests to a legacy application, it can be useful to know your code coverage:

  • If you know that a line of code isn’t covered by your tests yet, you can see more clearly ...

Get The Cucumber for Java Book now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.