Jacoco on Remote Websphere

45 views
Skip to first unread message

Michael Miner

unread,
Jun 30, 2015, 9:31:59 AM6/30/15
to jac...@googlegroups.com
Hello Everyone,

I have a slave machine running WebSphere, I use jenkins to start the server (calls startServer.bat) then runs a test then stops the server (stopServer.bat). I need to run jacoco code coverage on the server as well. I have set up the generic jvm arguments as "genericJvmArguments="-Xshareclasses:none -javaagent:C:\eclemma-2.3.2\jacocoagent.jar=output=tcpserver,port=12345,sessionid=9988".

Using Rational Application Developer I can use jacoco with websphere, what I do not know how to do it start the server with jacoco using the startServer.bat. Has anyone done this?

Evgeny Mandrikov

unread,
Jun 30, 2015, 11:56:54 AM6/30/15
to jac...@googlegroups.com, mrcomp...@gmail.com
Hi Michael,

If the question is "how to specify JVM arguments for WebSphere using startServer.bat", then IMO this is more question to WebSphere experts and so a little bit off-topic for this mailing list.
If the question is "how to obtain results from JaCoCo in output=tcpserver mode", then please consult with documentation - there are Ant Task to perform dump ( http://www.eclemma.org/jacoco/trunk/doc/ant.html ), Maven goal ( http://www.eclemma.org/jacoco/trunk/doc/dump-mojo.html ) and example of Java code ( http://www.eclemma.org/jacoco/trunk/doc/api.html ). BTW why usage of "output=file" mode is not an option?

Hope this helps.

Best regards,
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages