For this section, I'm going to measure the coverage for the
java-demo project before and after generating tests. This assumes that the
src/test/java folder is in the initial state (in other words, the only file is the existing
OrderTest.java file in the
com.diffblue.javademo package). The
Palindrome.java example class in
com.diffblue.javademo package may or may-not exist -- it won't change the process.
Start off by right clicking on the
com.diffblue.javademo package in the
test/java folder and selecting
Run 'Tests in 'com.diffblue.javademo'' with Coverage.
Once the tests have finished you'll see something that looks like this:Perform a full analysis of the project, and re-run the coverage tool, you should see something like the following.