This is the documentation for Bamboo 5.8. View this page for the

Unknown macro: {spacejump}

of Bamboo, or visit the latest Bamboo documentation.

If your organization uses the Atlassian Clover code-coverage tool, Bamboo can record code-coverage details (i.e. the percentage of code covered by tests) for each build result.

This is only available if the build's plan specifies a Clover directory (for details please refer to the Enabling the Clover add-on).

ジョブの Clover HTML レポート

Clover が HTML レポートを生成する場合(自動統合では既定で作成)、ビルド ジョブの要約ページでレポートを調べることができます。レポートを表示するには、次の手順を実行します。

  1. プランの要約に移動します。
  2. 関連するビルド番号を選択します。
  3. 適切なジョブを選択します。
  4. [Clover] タブをクリックしてレポートを開きます。ジョブで複数のレポートが生成される場合は、リストが表示され、それらを切り替えることができます。

スクリーン ショット: Bamboo 5.6.1 以降の [Clover] タブ。 

スクリーン ショット: Bamboo 5.6.0 以前の [Clover] タブ。レポートが 1 つだけ表示されています。他のレポートにアクセスするには、[アーティファクト] タブを使用します。

 

The Clover tab is not available on the Build summary page - you must navigate to the Job summary (BAM-12852).

ジョブの Clover 統計レポート

ビルドで Clover XML レポートは生成されるが、HTML レポートが生成されない場合、Clover レポートのアーティファクトは [アーティファクト] タブに表示されませんが、ビルドのジョブ概要ページにいくつかのコード カバレッジ統計が含まれています。

  1. プランの要約に移動します。
  2. 関連するビルド番号を選択します。
  3. 適切なジョブを選択します。
  4. [Clover] タブをクリックしてレポートを開きます。


(warning) TIP: This usually happens for manual Clover integration. In case you want to see full Clover report, configure it as described on Enabling the Clover add-on page.

参考

The content of the Clover HTML report is discussed in detail on the Clover Documentation Home - 4. Understanding Reports page. For completeness, an example Clover Code Coverage HTML report is shown below.

トラブルシューティング

The Clover tab shows the directory listing instead of the HTML report

Please check how your Tomcat is configured to handle URLs pointing to directories. When an URL refers to a directory, Tomcat can show the directory listing, display a welcome file or issue a "404 Page Not Found" error. Disable the directory listing feature. See Tomcat documentation for more details.