码迷,mamicode.com
首页 > 其他好文 > 详细

emma覆盖率

时间:2016-04-29 01:51:25      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:测试质量

-Xbootclasspath/p:/home/admin/software/jdk1.7.0_79/jre/lib/ext/emma.jar

 

 

 

 复制 /server/bin/mobileserver/runServer.sh 到 runServer_emma.sh

    修改启动语句

    nohup java -Xmx1800M -Xms800m -Xbootclasspath/p:/home/q/java/emmalib/emma.jar -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider -XX:+AggressiveOpts -XX:+UseParallelGC -server -classpath "$jarFile" com.qunar.common.mobileArc.MobileServer conf/TaLog.property conf/TripServer.property >> $LOG_HOME/error.log 2>&1 &

    复制 /server/bin/mobileserver/stopServer.sh 到 stopServer_emma.sh

 

 

1.启动emma: 

java emma instr -m overwrite  -ip classes  -Dmetadata.out.file=credit_coverage.em

2.启动tocmat

3.收集结果

java  emma ctl -connect localhost:47653 -command coverage.get,credit_coverage.ec

 

 

java  emma ctl -connect localhost:26677 -command coverage.get,credit_coverage.ec

 

 

 

/home/admin/software/jdk1.7.0_79/jre/bin/java emma ctl -connect localhost:47653 -command coverage.get,/home/admin/webcmcc.ec

 

 

%JM_START% %JM_LAUNCH%  -Xbootclasspath/p:E:\alibaba\tools\emma-stable-2.1-lib\emma.jar  %

 

JVM_ARGS% %ARGS%   -jar "%JMETER_BIN%ApacheJMeter.jar" %JMETER_CMD_LINE_ARGS%

 

 

nohup java -Xmx1800M -Xms800m -Xbootclasspath/p:/home/q/java/emmalib/emma.jar -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider -XX:+AggressiveOpts -XX:+UseParallelGC -server -classpath "$jarFile" com.qunar.common.mobileArc.MobileServer conf/TaLog.property conf/TripServer.property >> $LOG_HOME/error.log 2>&1 &

 

 

 -Xbootclasspath/p:/home/admin/software/jdk1.7.0_79/jre/lib/ext/emma.jar


emma覆盖率

标签:测试质量

原文地址:http://zhenglb.blog.51cto.com/11522904/1768840

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!