Hi ,

I have been trying to integrate jacoco code coverage in our project to get 
the runtime data from the application servers.

Our aim is to show the testing teams, that how much amount of code coverage 
is being done through automation test suites.

We are able to get some percentage of coverage from the configuration being 
done. We have added the runtime agent jar in the classpath during the 
server start up and the dumps from the application server  are being 
supplied to maven build job which runs the sonar scan and publishes to 
sonarQube dashboard.


We are facing few complications and issues during this setup. I have 
classified them as different topics as below: 
Please suggest me 


Only Single port for Jacoco Agent:

Right now , our application runs on weblogic with 2 managed servers 
followed by f5.
The application requests can hit any of the managed servers during the 
testing

on the startup scripts, we are giving arguments as ,


JAVA_OPTIONS="${JAVA_OPTIONS} 
-javaagent:/opt/apps/qa/apps/lib/jacoco.agent-runtime.jar=output=tcpserver,append=true,classdumpdir=cdd,address=*,port=6300"

As we have configured the jacoco classpath in the startup script, port is 
occupied by the managed server,which ever starts first.,the other server 
doesn't get the port.

In that case , will the coverage be 50% of the actual coverage ? as the 
second server doesnt report anything to Jacoco agent?
Or will the jacoco agent will listen to both the JVMS of the  weblogic 
instance?

Can we pass two port numbers as arguments to jacoco maven plugin?



Code sync on source code and Application server:

Our Development team will be continuously checking the code in github 
repository, while the code deployed at the application server might be at 
the different level.
So if we run the sonar scan along with jacoco plugin, will there be any 
issue as the code deployed vs the code being run might be little bit out 
sync? 

Will it effect the amount of code coverage?


Multiple Instances Coverage Report :

For each application in our project we have 4 testing environments, 2 will 
be run will manual testing and other 2 will be run with automation test 
suites.

is it possible to show the Integration Code Coverage Reports from 4 
environments on a Single SonarQube Dashboard page ?


Thanks
Girish Kumbharthi

-- 
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/6e7e908a-4aa7-47b2-b345-0e58fef2e9a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to