Glad to hear that you found the issue!
You may ask the Jenkins developers to add a warning in case of
non-matching class files. Our Maven and Ant plugins already do this:
if (!nomatch.isEmpty()) {
log.warn(format(
"Classes in bundle '%s' do no match with execution
data. "
+ "For report generation the same class
files must be used as at runtime.",
bundle.getName()));
for (final IClassCoverage c : nomatch) {
log.warn(format("Execution data for class %s does not
match.",
c.getName()));
}
}
See:
https://github.com/jacoco/jacoco/blob/master/jacoco-maven-plugin/src/org/jacoco/maven/ReportSupport.java#L210
Regards,
-marc
On 02.06.16 03:29, Hyunil Shin wrote:
Thank you. anyway.
It was about Class ID.
War file was built in an environment which was different from one of
analysis.
- War file was executed with Jacoco agent in build machine.
- One more compile happened for Jenkins Jacoco plugin, which needs
source and java classes in test machine.
When I built war file in test machine, it worked.
Because of this issue, I was in trouble almost for two days.
(use different tomcat version, try to use Jetty, change java version,
change Jacoco version...
I should have to read more carefully documentations, debug the result
using session that you said.)
Thank you again.
--
You received this message because you are subscribed to the Google
Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/6d8b5774-3755-4118-81b5-79867fc3cd3b%40googlegroups.com
<https://groups.google.com/d/msgid/jacoco/6d8b5774-3755-4118-81b5-79867fc3cd3b%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "JaCoCo
and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/574FB6F0.70101%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.