JUnit tabular analysis
Tabular overview of all test cases
JUnit timeline analysis
Timeline of executed test cases
However, the following questions repeatedly arise:
The open-source library and the test coverage extension provide the answers to these questions.
To find out which areas of the code are not covered by tests, the code coverage analysis – Structured Code Coverage Extension – is used.
Locally, the developer sees the results live in the editor, line by line:
What is covered by tests, and what is not.
Green highlighted lines are covered by tests, red ones are not. Here is a LASAL Class 2 component in VS Code – the display at the bottom shows 62% coverage for this file.
Code Coverage Information
Test coverage in code review: The merge request shows at the edge of the modified file which lines are not covered by tests. Reviewers see the blind spots directly in the context of the change.
By combining version control, test case documentation, and the results from the test run, a wealth of information can be gained, significantly increasing the stability of the program.
annually
Buy