标签:testcase cobertura 打开 命令 mave java ref des get
1.在pom.xml中plugins中加上这一段
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<configuration>
<skip>false</skip>
<argLine>-Xmx128M</argLine>
<includes>
<include>**/*Test*.java</include>
<include>**/*Test.java</include>
<include>**/*IT.java</include>
<include>**/*TestCase.java</include>
</includes>
</configuration>
</plugin>
2.写了测试后,执行run as 命令:cobertura:cobertura
或者者在命令行:mvn cobertura:cobertura
3.在你的target中找到target\site\cobertura目录,打开index.html
标签:testcase cobertura 打开 命令 mave java ref des get
原文地址:http://www.cnblogs.com/wulinzi/p/7967302.html