Community
Participate
Working Groups
Our JaCoCo monitoring report does not include src-information even if directory / sources are provided; testing using the JavaFX SimpleAdder from the Samples project.
Is this a regression since updating to the new version of JaCoCo?
I don't know - I've just noticed this while preparing a talk. Unfortunately I don't have time to investigate / analyse this now in greater detail.
The problem has been that the installation files (binary JARs of the AUTs - in my case the SimpleAdderFX) did not include any debug / line information (see [1] - Why does the coverage report not show highlighted source code?) which is a pre-requisite for JaCoCo to provide reports with src-inclusions. I've altered all of our example AUT builds to also include "debug" information: http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/commit/?id=d962cf9c4f3e41b8648838450bbcd919b0057a07 Now it's working as expected. [1] http://www.eclemma.org/jacoco/trunk/doc/faq.html
Created attachment 253133 [details] JaCoCo report showing source coverage for the SimpleAdder in JavaFX
While checking the state of the involved class files "javap -l" has been a very useful tool - see [1] for additional information. [1] http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javap.html
This has been tested by SSt for JUB-1169.