SE-Radio Episode 324: Marc Hoffmann on Code Test Coverage Analysis and Tools

Filed in Episodes by on May 22, 2018 1 Comment

Diomidis Spinellis talks with Marc Hoffmann on code test coverage and the tools that can analyze it. Knowing the percentage of code that is covered by tests, can help developers assess the quality of their test cases and help them add missing tests and thereby find and remove software faults. Marc is a key developer behind JaCoCo, a free code coverage library for Java. JaCoCo works directly on Java bytecode, without requiring access to the corresponding source code. It is integrated in mainstream IDEs and can be easily used as part of the software’s continuous integration process. A controversial issue associated with test coverage is the percentage of code that should be covered. Here Marc offers a valuable insight, recommending that code coverage metrics should be used to improve test quality during development and that developers should focus more on the quality of the test code rather than the amount of test coverage. Adding test cases after the code has been written, aiming to increase test coverage typically amounts to window dressing.

Related Links

Java Code Coverage for Eclipse

JaCoCo Java Code Coverage Library

Related SE Radio episodes

Episode 256: Jay Fields on Working Effectively with Unit Tests

Related IEEE Software articles

Automating Software Testing using Program Analysis

Comprehensive Multiplatform Dynamic Program Analysis for Java and Android

Unit tests reloaded: Parameterized Unit Testing with Symbolic Execution


Tags: , ,