On Tuesday, April 14, 2020 at 11:04:29 AM UTC+2, Rémi Ollagnier wrote: > > Dear Evgeny, > > Thanks for your help and sorry to answer you so late. > > I carried out a first test which you will find here : > https://drive.google.com/file/d/13PM0KIV35FxEmn9KnccPsT1wTGibvehA/view?usp=sharing > In this one, JaCoCo is configured with the default mode. But, there is no > hyperlink in the session page. >
As stated on page https://www.jacoco.org/jacoco/trunk/doc/prepare-agent-mojo.html Prepares a property pointing to the JaCoCo runtime agent that can be *passed as a VM argument to the application under test*. Your tests start Wildfly in a separate JVM, so please make sure that this JVM receives the above argument. Seems that you use Arquillian to start Wildfly, so please refer to Arquillian documentation about how to pass arguments. For example after modification in attached javaVmArguments.patch following report is generated [image: report.png] > So I worked on a second test that you will find here : > https://drive.google.com/file/d/1Yi2TsCYF7uA735SXqfbgAqWtR0WDB6yh/view?usp=sharing > In this one, JaCoCo is configured in offline mode. However, I do not have > a session in the session page. > > Best Regards, > Rémi Ollagnier > > Le mer. 25 mars 2020 à 12:04, Evgeny Mandrikov <mandri...@gmail.com> a > écrit : > >> Hi, >> >> On Thursday, March 12, 2020 at 5:29:25 PM UTC+1, Rémi Ollagnier wrote: >>> >>> I can send you the code that isolates the problem and allows me to >>> reproduce it systematically. >>> Below you will find part of the files. >>> >> >> Partial snippets are not debuggable, so yes - please always send the >> complete example to increase your chances of receiving help. >> >> >> Regards, >> Evgeny >> >> -- >> 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/dLMsTK-803A/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> jacoco+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jacoco/9854f726-7ac8-4fd3-95dc-c16614e32df8%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jacoco/9854f726-7ac8-4fd3-95dc-c16614e32df8%40googlegroups.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 jacoco+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/27aaf18f-d4f0-4001-978d-0cb94ab4cae0%40googlegroups.com.
diff --git c/pom.xml i/pom.xml index e709e29..da930aa 100644 --- c/pom.xml +++ i/pom.xml @@ -144,6 +144,9 @@ <goals> <goal>prepare-agent</goal> </goals> + <configuration> + <propertyName>jacoco.agent</propertyName> + </configuration> </execution> <execution> <id>default-report</id> @@ -176,6 +179,16 @@ </execution> </executions> </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <systemPropertyVariables> + <jacoco.agent>${jacoco.agent}</jacoco.agent> + </systemPropertyVariables> + </configuration> + </plugin> </plugins> </build> diff --git c/src/test/resources/arquillian.xml i/src/test/resources/arquillian.xml index 9188547..f3bbf32 100644 --- c/src/test/resources/arquillian.xml +++ i/src/test/resources/arquillian.xml @@ -21,7 +21,7 @@ <container qualifier="wildfly-managed" default="true"> <configuration> - <property name="javaVmArguments"></property> + <property name="javaVmArguments">${jacoco.agent}</property> </configuration> </container>