Code Coverage Metrics and How to Use Them

More and more testers and programmers are using tools that provide code coverage metrics. These metrics tell the tester or programmer how much of the code has been covered by a given set of tests, and, more importantly, what important conditions might not be covered. In addition, some tools can evaluate the coverage of data flows. Some tools can also provide insight into the complexity, and thus the likely difficulty level of future refactoring, of the code.

In this practical presentation, Rex will explain the following code coverage metrics and how you can use them to write better code or tests:

  • Statement and branch coverage metrics
  • McCabe Cyclomatic complexity and basis path coverage

To make the material easier to understand and practical, Rex will illustrate each metric using a real program, along with open source tools that illustrate the concepts.

Location: Cardiff Date: April 12, 2018 Time: 10:15 am - 11:15 am Rex Black - RBCS Rex Black