Dear all,
in my current project, evosuite seems to report other coverage data during test suite generation time than the tool that I use at runtime.
To reproduce the situation, you can find the code
https://bitbucket.org/h_schole/xcorpus-sampleUsage (installed java, ant and mercurial needed):
Clone, then
cd into xcorpus-sample/antlr-3.4/.xcorpus
To execute and produce the runtime coverage report call
ant -f exercise.xml generated-tests
If you wish to re-generate the relevant test call
ant -f exercise.xml generate-single-test
The evosuite report is located in antlr-3.4/.xcorpus/evosuite-report,
the jacoco report in antlr-3.4/.xcorpus/output/TIMESTAMP/ in different formats.
The relevant class is org.antlr.misc.Barrier.
For this class,
Evosuite reports ~98% coverage (seems to be branch coverage?)
Jacoco reports 91% instruction coverage and 75% branch coverage.
Do you see any reason for this?
Thank you for your time,
Henrik