<plugin>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
<goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
<goals>
</execution>
</executions>
</plugin>
I replaced prepare-agent goal with prepare-agent-integration but i cant see any reports.
I see a message saying skipping jacoco execution due to missing classes directory.
My integration tests are in a seperate module.
Can anyone please help me how to configure jacoco for my integration tests?
I am using jersey-test-framework-grizzly2 1.12 from com.sun.jersey.jersey-test-framework
On the other hand the report does not show the source code.
I am not able to download the plugin from the snapshot repo because i am behind a proxy. Authenticating to the proxy also does not work due to some unknown reasons.
I tried manually adding the jar and pom file to my local repo but still it does not work.
<plugin>
<executions>
<execution>
<goals>
<goal>prepare-agent-integration</goal>
<goals>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report-aggregate</goal>
<goals>
</execution>
</executions>
</plugin>
The reports are still not getting generated.
Let me explain again. I have a project which has 20 modules in it. In one of the module we started writing integration tests.
We are using jersey test frameowork for the integration tests.
I added 0.7.7 jacoco maven plugin with report-aggregate goal as described above and i still dont see the reports.
I added the plugin with prepare-agent-integration and report-aggregate but the reports are not getting generated
Then changed it to use prepare-agent and report as the goals. The reports are generated but only for the classes current module.
I have another module which is completely for integration tests. It won't contain source files under main/java. When i run coverage for it, no reports are getting generated.
Can anyone please help me?
Hello Thanuku,
* you have to include all modules for which you want to have the aggregated report as dependencies of the aggregating module
* in your aggregating module you only need the report-aggregate execution.
* you have to bind the execution to a phase, e.g. verify.
See https://gitlab.com/mfriedenhagen/testlink-junit/blob/master/tljunit-jacoco-aggregate/pom.xml for an example.
Regards
Mirko
--
Sent from my mobile
--
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 jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/b16fdd2e-0f29-4e19-afb4-315a728ae3fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hello Thanuku,
I have seen this as well, when I had scope for a dependency. Just to be sure: the single module reports are created correctly? Aggregate only collects previously created jacoco.exec files.
Regards
Mirko
--
Sent from my mobile
Actually I see an empty report when I open the html file under jacoco-aggregate
--
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 jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/88a6ae49-674f-49ec-b40c-ed51b4872ef5%40googlegroups.com.
Hello,
if you only execute one module the other modules will be pulled from your maven repository manager and the class files will probably be different. So this is to be expected.
Regards
Mirko
--
Sent from my mobile
--
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 jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/62679a30-3db9-46c7-a5c7-f86871b70c79%40googlegroups.com.
Hello,
if you only execute one module the other modules will be pulled from your maven repository manager and the class files will probably be different. So this is to be expected.
Regards
Mirko
--
Sent from my mobile
Am 07.06.2016 20:31 schrieb "Thanuku Krishna Chaitanya" <yours...@gmail.com>:
I just observed that the plugin is generating an empty report if i build only the integration module. It is generating the full/actual report only if i build the root/parent project. I just tried with Jersey Test framework and the report is getting generated fine.--I think my work environment has some problem.Thanks for the support guys.
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 jacoco+unsubscribe@googlegroups.com.
I have 20 modules out of which 19 modules contain junit test cases and one module is for the integration tests.
I added report-aggregate to the integration pom and it is generating a report which contains the unit test reports as well. So now I do not know how much of code is covered by my integration tests.
Can anyone suggest?
--
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/wzEvbkrR-Aw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/220e05c7-c90c-44e0-8adc-fdf01e09d3c5%40googlegroups.com.
Then i restored all my test cases and changed the dest file, data file and output directory locations. Then i ran the build and the integration report contained reports from unit tests also. I then tried excluding data file from my integration pom jacoco plugin. But still the integration report is containing unit report.
Can anyone please shed some light
I used <dataFile>${project.build.directory}/../.jacoco/jacoco-unit.exec</dataFile> and <destFile>${project.build.directory}/../.jacoco/jacoco-unit.exec</destFile> and <outputDirectory>${project.build.directory}/../.jacoco/site/unit<outputDirectory>
But i am not sure what problems will i face in future for moving the unit test reports to outside target directory.
I think there is some problem with the plugin while excluding the data files.
I think there is some problem with the plugin while excluding the data files.