0
warファイルはtomcat7/webapps /にあります。マニュアルテストのコードカバレッジ測定にJacocoを使用できますか?
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.5.5.201112152213</version>
<configuration>
<destFile>${basedir}/../../../../../../opt/tomcat7/webapps/coverage-reports/jacoco-unit.exec</destFile>
<dataFile>${basedir}/../../../../../../opt/tomcat7/webapps/coverage-reports/jacoco-unit.exec</dataFile>
<outputDirectory>${basedir}/../../../../../../opt/tomcat7/webapps/coverage-reports/jacoco</outputDirectory> </configuration>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-site</id>
<phase>package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
以上でプロジェクトをビルドした後、フォルダがtomcat7で作成される/ webappsにindex.htmlをが含まれています。私はのpom.xmlに以下の変更を行いました。しかし、同じことが0%のカバレッジレポートを与え続ける。私が間違っていることは何ですか? prepare-agent
の文書によると