[Use Clover to collect Code Coverage for this build (Clover を使用してこのビルドのコード カバレッジを収集する)] を選択して、次の設定を指定します。
設定
説明
このビルドに Clover を自動的に統合する
You will need to provide a Clover license (evaluation licenses are available), unless this has been configured globally in the Administration panel (Administration > Plugins > Clover Plugin).
Generate a Clover Historical Report (Clover 履歴レポートを生成する)
現在のカバレッジ結果を以前の Clover コード カバレッジ レポートと比較して表示します。
Generate a JSON report (JSON レポートを生成する)
アプリまたは外部レポート ビューに組み込める形式で Clover 結果を提供します。
Use plan-defined Clover license key (プランに定義された Clover ライセンス キーを使用する)
該当する特定のプランに対してグローバル Clover ライセンスをオーバーライドします。
Clover is already integrated into this build (Clover はこのビルドに統合済み)
Use this option when you already have Clover-for-Ant, Clover-for-Maven or other Clover integration configured to generate a report.
As Clover integration (automatic and manual) produces instrumented classes, we recommend to ensure that your job does not install them to production (for instance: 'mvn deploy' to public repository, 'scp' to an application server running on production, etc ...). Having instrumented code in such location is usually not desired.
Common practices to ensure proper separation of instrumented and non-instrumented classes are:
create a dedicated plan or job with Clover integration enabled
enable automatic Clover integration for jobs running tests only (e.g. "mvn verify")
use different location of local artifact cache if you need to install artifacts (e.g. ~/.m2/repository-clover and "mvn install")
use different URL for uploading artifacts if necessary (e.g. a separate repository for "mvn deploy")
In case you perform a build in a subdirectory (for instance, in the Maven Task configuration you have the "Working sub directory" field set) and you have automatic Clover integration, you may need to correct the Location in the "Clover Report (System)" artifact. Otherwise, an HTML report may be empty as automatic Clover integration uses the default path (for instance, the "target/site/clover" in case of integration with Maven). This bug has been fixed in Bamboo 5.7.
自動 Clover 統合とマルチモジュール Maven プロジェクト
If you have a multi-module Maven project with dependencies between modules and use Automatic Clover integration, it can happen that an instrumented JAR of the dependent artifact will be taken for test execution in a build phase where Clover was not enabled yet. See BAM-13208 for more details. In such case, we recommend the following: