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

Unknown macro: {spacejump}

of Bamboo, or visit the latest Bamboo documentation.

This page describes how to configure a Bamboo task to parse JUnit test results.

TestNG では JUnit XML 形式を使用するため、JUnit パーサー タスクは、TestNG のテスト結果をパースすることもできます。

始める前に

  • Bamboo の java ビルダー タスク(Maven など)は、タスクの一部としてテスト情報を解析します。テスト結果がビルダー タスクの一部として生成される場合、テスト タスクを設定する必要はありません。

JUnit パーサー タスクを設定する方法:

  1. ジョブのタスク設定タブに移動します(新しいプランを作成するとデフォルト ジョブとなります)。
  2. Click the name of an existing JUnit Parser task, or click Add Task and then JUnit Parser to create a new task.
  3. タスク設定の更新

     

    タスクの説明Bamboo で表示されるタスクの説明を入力します。
    このタスクを無効化オンまたはオフにすることで、選択的にこのタスクを実行します。
    カスタム結果ディレクトリの指定Enter the name of the test results directory (or multiple directories, separated by commas). You can also use Ant-style patterns such as **/test-reports/*.xml/ where the base directory is the "working directory" –  this can be found at the start of your build log. Do not specify an absolute path. 
    For jobs that use CVS, the job build's root directory is <bamboo-home>/xml-data/build-dir/JOB_KEY/<cvs-module>.
  4. 保存をクリックします。

 

  • ラベルなし