rohityadavcloud commented on code in PR #7784:
URL: https://github.com/apache/cloudstack/pull/7784#discussion_r1282664709
##########
.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:
perhaps we can experiment this with our smoketests against actual
environment and gather/publish the jacoco file separately cc @vishesh92
@borisstoyanov @vladimirpetrov @kiranchavala @DaanHoogland - so we've a unit
test coverage stats and functional/marvin test coverage stats (discuss - if you
think, combined is also okay?)
--
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]