0

I need to see my test's result in the summary page. The test report in custome format, so I can't use 'in-box' testing task of TFS, but I would like to have the same behaviour as for Unit tests:

  1. statistic in summary page with link leading to Test details tab
  2. Tab with tests details in build summary
  3. TestRun in 'Test->Run' category (optional)
  4. Detail information for each test.

I found how to make it in 'Test->Run' with this link How to create a test run and result using the Team Foundation Server API? (many thanks to author). In this solution Test created base on Test Plan and Test Suite. According to my experience, the Unit test creates Test Run base on Build, and I belive that should be TFS API to do it programmatically.

Could someone suggest me where such API could be found. And if p1 and p2 possible to make and how?

4

1 に答える 1

1

必要に応じて、独自の vsts 拡張機能を記述してセクションまたはタブを作成し、ビルド結果レポートとビルド サマリーに情報を表示する必要がある場合があります。

xml 結果ファイルを REST インターフェイス経由で「testrun-attachment」としてアップロードし、ビルド サマリー タブまたは独自の拡張された「テスト結果」タブにサマリー値を表示するためのピースを配置できます。以下は、参考のために opencover の結果を表示する方法の例です: vsts-opencover、最終的には以下のような結果が得られます:

ここに画像の説明を入力

独自の拡張機能を作成する方法:

Visual Studio Team Services の拡張機能の概要

いくつかの例 :


于 2016-10-27T08:54:43.193 に答える