On Tuesday, April 14, 2020 at 6:03:54 PM UTC+2, Rémi Ollagnier wrote: > > Dear Evgeny, > > Thank you so much, I managed to get the code coverage with your > corrections. > But, it's not work on Windows 10. I run the command on my RHEL 7.6 with > the same code and always fine. > Is there a specific configuration for Windows? >
Usage of JaCoCo is the same on Windows as on other platforms: - - JaCoCo agent should be passed to JVM using "-javaagent" argument - JVM should be terminated gracefully so that JVM shutdown hook registered by JaCoCo can write data on disk, note that to avoid JVM bugs such as https://bugs.openjdk.java.net/browse/JDK-8154017 you should use the latest updates of JVM And as was already said in my previous email: How to do this properly for JVM with Wildfly started by Arquillian - is the question for Arquillian/Wildfly experts/developers. As well as the questions of different behavior of Arquillian/Wildfly on different platforms. > > Best regards, > Rémi Ollagnier > > Le mar. 14 avr. 2020 à 12:12, Evgeny Mandrikov <[email protected]> a > écrit : > >> >> >> 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 <[email protected]> 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 >>>> [email protected]. >>>> 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 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 >> [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jacoco/27aaf18f-d4f0-4001-978d-0cb94ab4cae0%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jacoco/27aaf18f-d4f0-4001-978d-0cb94ab4cae0%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/5939f898-05e2-40b0-8910-6131918fa748%40googlegroups.com.
