Configuring Tomcat can be tricky as it envolves more than one Java
process: One to start and stop the server and the actual server. Make
sure that the agent is configured for the actual server and not just for
the controller.
In the JaCoCo report page there is a link "Sessions" on the top right
corner which lists all classes seen by the agent at runtime. Can you
please check whether your app classes are listed or is it just tomcat
internals? In the latter case you probably attached the agent to the
wrong process.
Regards,
-marc
On 01.06.16 06:57, Hyunil Shin wrote:
Issue
- tomcat + jacoco agent does not report coverage correctly.
- exec file was generated, but when I checked, code which is tested is
reported as unused.
When I ran mvn jetty:run (no configuration jacoco in pom.xml,
MAVEN_OPTS) + jacoco agent, it reported correctly.
To compare two exec files above, the size is different.
Correct one is bigger.
any idea to handle this?
--
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/79355c1d-c586-47f5-8037-21b6b514604b%40googlegroups.com
<https://groups.google.com/d/msgid/jacoco/79355c1d-c586-47f5-8037-21b6b514604b%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/574E6DE2.5070506%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.