Hi Sravan,
you need to make sure that you configure the JaCoCo agent for the JVM
where your classes under test are actually executed, in your case the
JBoss container.
Regards,
-marc
On 26.11.14 06:47, [email protected] wrote:
Hi Marc,
Thanks for the explaination.
When i see the sessions link in the HTML report generated it lists down only
the integration tests classes with the ids that got executed,but i didn't get
the code coverage for the integration tests.
Coming to in detailed information of integration tests these will be make use
of the JBoss container for execution and in built h2 database for data setup
for execution of integration tests.
Thanks,
Sravan Kumar Indupuri
On Tuesday, November 25, 2014 8:20:26 PM UTC+5:30, Marc R. Hoffmann wrote:
Have you performed the checks described in the FAQ? What are your
observations?
http://www.eclemma.org/jacoco/trunk/doc/faq.html
Q: Why does a class show as not covered although it has been executed?
A: First make sure execution data has been collected. For this select
the Sessions link on the top right corner of the HTML report and check
whether the class in question is listed. If it is listed but not linked
the class at execution time is a different class file. Make sure you're
using the exact same class file at runtime as for report generation.
Note that some tools (e.g. EJB containers, mocking frameworks) might
modify your class files at runtime. Please see the chapter about class
ids for a detailed discussion.
Best regards,
-marc
On 2014-11-25 10:05, sri priyanka wrote:
I am attaching the pom.xml that we have used to generate
jacoco-it.exec and also the index.html file generated after executing
the above command(sonar step).
On Tue, Nov 25, 2014 at 1:53 PM, <[email protected]> wrote:
Hi Team,
We are not able to get IT code coverage using Jacoco.
IT coverage is shown as 0.0% in sonar dashboard.
As a first step we have generated jacoco-it.exec file and executed
the below command to get the coverage on sonar dashboard.
mvn
-Dsonar.jacoco.itReportPath="E:BuildAgentworkb8f0a63c1c75b440servicesbranchesphase_1_iteration_3targetjacoco-it.exec"
sonar:sonar -Dsonar.dynamicAnalysis=reuseReports
Please note that it is a multi module project and we need IT
coverage for a particular module.
Kindly help us in resolving this issue and let me know if any
further information is needed.
Thanks,
Sri Priyanka
--
You received this message because you are subscribed to a topic in
the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jacoco/3VzuqP4EHTs/unsubscribe
[1].
To unsubscribe from this group and all its topics, send an email to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/41285386-475f-4ec1-b925-e3969fc4d503%40googlegroups.com
[2].
For more options, visit https://groups.google.com/d/optout [3].
--
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/CANbHXxAvgpAoEjufaOO3Kvqdr3jK4Ld-x%2BxtJKAf6uOOaVB_vQ%40mail.gmail.com
[4].
For more options, visit https://groups.google.com/d/optout [3].
Links:
------
[1] https://groups.google.com/d/topic/jacoco/3VzuqP4EHTs/unsubscribe
[2]
https://groups.google.com/d/msgid/jacoco/41285386-475f-4ec1-b925-e3969fc4d503%40googlegroups.com
[3] https://groups.google.com/d/optout
[4]
https://groups.google.com/d/msgid/jacoco/CANbHXxAvgpAoEjufaOO3Kvqdr3jK4Ld-x%2BxtJKAf6uOOaVB_vQ%40mail.gmail.com?utm_medium=email&utm_source=footer
--
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/54760D6C.3070102%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.