カバレッジを行うとテスト件数が2倍になる件
404 shin1のつぶやき ないわー Not Foundよりメモ。
cobertura-maven-pluginを使ってカバレッジをとると、テストが2回走ってHudsonに表示されるテスト件数も2倍になる件は、以下のようにすることで解決。
<reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <version>2.4.1</version> <reportSets> <reportSet> <reports> <report>report-only</report> </reports> </reportSet> </reportSets> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <configuration> <formats> <format>xml</format> <format>html</format> </formats> </configuration> </plugin> </plugins> </reporting>
report-onlyなんてのがあったのか。