标签:bee http export exist aries 代码 bash lin existing
新开发项目Jacoco代码覆盖率 后端接口打成jar包,进行启动 #execute t1=$(date) nohup /opt/converse_jar_QA/bin/jdk1.8.0_131/bin/java -javaagent:/opt/jacoco/lib/jacocoagent.jar =destfile=/opt/converse_jar_QA/jacoco.exec -jar /opt/converse_jar_QA/bin/converse.ws.jar spring.config.location=/opt/converse_jar_QA/bin/application.properties ${t1} 2>&1 &
配置Jacoco,官网地址: https://www.eclemma.org/jacoco/
JaCoCo Java Code Coverage Library
JaCoCo is a free code coverage library for Java, which has been created by the EclEmma team based on the lessons learned from using and integration existing libraries for many years.
解压到\opt\jacocoagent,
安装 Jacocoagent.jar,
tomcat:在目录下面/opt/taobao/tomcat/bin新建一个文件setenv.sh文件,内容如下:
export CATALINA_OPTS="-javaagent:/opt/jacoco/lib/jacocoagent.jar=destfile=jacoco.exec"
下面blog比较详细测试了代码覆盖率这个玩意儿,有空可以看看,自己也试试,mark下
https://blog.csdn.net/ohcezzz/article/details/78416125
标签:bee http export exist aries 代码 bash lin existing
原文地址:https://www.cnblogs.com/qianjinyan/p/9077133.html