I tried to overcome the problem by configuring both servers to write to the same location. On the server running externally (not by cargo) I configured: set JAVA_OPTS=%JAVA_OPTS% -Xrs -XX:MaxPermSize=256m -XX:PermSize=256m -XX:NewRatio=3 -Xms512m -Xmx1024m -XX:+UseParallelGC -javaagent:C:\...\jacoco-agent.jar=destfile=C:\...\jacoco-it.exec,append=true,includes=* I expected the server to write to the jacoco-it.exec file upon shutting the server by calling shutdown.bat. Unfortunately it didn't work. Any idea why?
On Thursday, April 10, 2014 9:17:25 AM UTC+3, Nava Onik wrote: > > Hello, > I have successfully implemented jacoco with sonar for integration tests. > I have problem with coverage regarding rest calls from the server. > I have 2 kinds of rest calls: > 1. rest calls from the client running the tests to the tomcat server > loaded by cargo > 2. rest calls from the server side to the same virtual machine (internal > rest calls) > If I make the second type rest calls to a different virtual machine > (runnig the same code, but a different class loader) everything works fine > but of course I get coverage only for rest calls of type 1. > If I use the same virtual machine for rest calls of type 2, I get 0% > coverage. > > 1. What is the reason? Is there a way to overcome this problem? > 2. Is there a way to run jacoco with multiple virtual machines? > > Thanks for your help. > -- 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]. For more options, visit https://groups.google.com/d/optout.
