MSTest パーサー
このページでは、MSTest の結果を解析するように Bamboo タスクを設定する方法について説明します。
Bamboo の .NET ビルダー タスク (NAnt など) は、タスクの一部としてテスト情報を解析しません。テスト結果を解析させるには、MSTest パーサーなどのテスト タスクを設定する必要があります。
それぞれのテスト結果ファイルに一意の名前が必要です。Bamboo 変数を使用すると、これを実現できます。これはお客様から提供された、テスト ファイルの名前にリビジョン番号とビルド番号を使っている例です。
<Project-Test-Subfolder>\TestResults\<Project>TestResults-Rev_${bamboo.repository.revision.number}-Build_${bamboo.buildNumber}.trx
MSTest パーサー タスクを設定する方法は次のとおりです。
- ジョブのタスク設定タブに移動します(新しいプランを作成するとデフォルト ジョブとなります)。
- 既存の MSTest パーサー タスクの名前をクリックするか、[タスクを追加] をクリックしてから [MSTest パーサー] をクリックして、新しいタスクを作成します。
Update the task settings:
Task Description
Enter a description of the task, for display in Bamboo.
Disable this task
Check, or clear, to selectively run this task.
MSTest Test Results File
Enter the name of the test results file. The test file must be in MSTest format. For more information on MSTest, see this MSDN page.- 保存をクリックします。
最終更新日 2019 年 7 月 17 日
Powered by Confluence and Scroll Viewport.