Coverage Information

Using the IDE's coverage tracking feature, it is possible to see how the newly-generated tests have affected line coverage for the project. Start with a fresh clone of the project or remove any generated tests in order to measure existing line coverage. In the case of java-demo (this means that the only test file present should be the supplied OrderTest.java file in the com.diffblue.javademo package).

Right-click on the com.diffblue.javademo package in the test/java folder and select Run 'Tests in 'com.diffblue.javademo'' with Coverage.

Once the tests have finished running, a table showing the initial line coverage, similar to the one below, will be displayed:

Perform a full analysis of the project and re-run the coverage tool. An updated table showing line coverage including that provided by the generated tests will be displayed:

results matching ""

    No results matching ""