1). 將emma.jar 放到 “ java_home/jre/lib/ext” 下面
2) Build包不起服務
3). 對 JAR 包插裝命令
java emma instr -m overwrite -ip /home/jiangyr/pc2test/stanley-1.0.0-t/pc2.server/pc2.server.deploy/pc2.server.web.jar
-Dmetadata.out.file=/home/jiangyr/test.em
4).起服務,跑單元測試
5). 從遠程機器上收集覆蓋率信息
java emma ctl -command coverage.get,/home/jiangyr/test.ec
6). 生成覆蓋率報告
java emma report -r html
-in test.em,test.ec -Dreport.html.out.file=/home/jiangyr/test.html