This page describes how to configure a Bamboo task to parse JUnit test results.
TestNG では JUnit XML 形式を使用するため、JUnit パーサー タスクは、TestNG のテスト結果をパースすることもできます。
始める前に
- Bamboo の java ビルダー タスク(Maven など)は、タスクの一部としてテスト情報を解析します。テスト結果がビルダー タスクの一部として生成される場合、テスト タスクを設定する必要はありません。
アトラシアン ブログ:
JUnit パーサー タスクを設定する方法:
- ジョブのタスク設定タブに移動します(新しいプランを作成するとデフォルト ジョブとなります)。
- Click the name of an existing JUnit Parser task, or click Add Task and then JUnit Parser to create a new task.
- タスク設定の更新
タスクの説明 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>. - 保存をクリックします。
