vishesh92 commented on code in PR #7784:
URL: https://github.com/apache/cloudstack/pull/7784#discussion_r1282860623


##########
.github/workflows/ci.yml:
##########
@@ -249,9 +256,16 @@ jobs:
           mvn -q -Pdeveloper -pl developer -Ddeploydb
           mvn -q -Pdeveloper -pl developer -Ddeploydb-simulator
 
+      - name: Generate jacoco-coverage.sh
+        run: |
+          echo "java -jar jacoco/lib/jacococli.jar report jacoco-it.exec \\" > 
jacoco-report.sh
+          find . | grep "target/classes" | sed 's/\/classes\//\/classes /g' | 
awk '{print "--classfiles", $1, "\\"}' | sort |uniq >> jacoco-report.sh
+          find . | grep "src/main/java" | sed 's/\/java\//\/java /g' | awk 
'{print "--sourcefiles", $1, "\\"}' | sort | uniq >> jacoco-report.sh
+          echo "--xml jacoco-coverage.xml" >> jacoco-report.sh
+
       - name: Start CloudStack Management Server with Simulator
         run: |
-          export MAVEN_OPTS="-Xmx4096m -XX:MaxPermSize=800m 
-Djava.security.egd=file:/dev/urandom"
+          export MAVEN_OPTS="-Xmx4096m -XX:MaxPermSize=800m 
-Djava.security.egd=file:/dev/urandom  
-javaagent:jacoco/lib/jacocoagent.jar=address=*,port=36320,output=tcpserver"

Review Comment:
   @rohityadavcloud We can get the coverage from Blue Orangutan jobs. I can do 
that as well, but I don't have much idea about the setup as of now. So, I will 
need some time to look into it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to