本文介绍了在 Tomcat 上使用 JaCoCo Java 代理获取我的应用程序的代码覆盖率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!
问题描述
I want to measure the code coverage of integration tests using the JaCoCo and Sonar tools.
For that, I start my Tomcat 5.5 configured with the JaCoCo agent in order to get the dump file from JaCoCo.
Thus, I set the JAVA_OPTS
for that:
set JAVA_OPTS=-Xrs -XX:MaxPermSize=256m -XX:PermSize=256m -XX:NewRatio=3 -Xms512m -Xmx1024m -XX:+UseParallelGC -javaagent:C:devserversjacoco-agent.jar=destfile=C:devserversjacoco.exec,append=true,includes=my.application.*
When I start Tomcat, the C:devserversjacoco.exec
file is generated, but no data is filled.
Is there something I forgot in the configuration of my server?
Regards.
解决方案
As far as I remember - file would be populated during shutdown of Tomcat.
这篇关于在 Tomcat 上使用 JaCoCo Java 代理获取我的应用程序的代码覆盖率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!
本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!