MSTest test artifacts are stored to wrong location

オープン
#12,205 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp
領域
testing

調査の方向性

Start by tracing how MSTest determines the artifact output directory and how that path is reported when running from the command line and Visual Studio Test Explorer. Reproduce with MSTest 4.5.2 and MTP 2.5.2, then compare the reported paths with where the files are written. Done means the reported artifact locations match the actual locations in both environments.

索引モデルが issue の本文から書いたものです。

説明

needs/triage

Describe the bug

Test artifacts are stored to wrong location

Version used

MSTest 4.5.2
MTP 2.5.2

Steps To Reproduce

  1. Run test with command line or in VisualStudio Test Explorer
  2. Wait till test is completed
  3. Review test output

Expected behavior

Artifacts are stored to correct location and correct list of artifacts is shown

Actual behavior

Run with command line
Artifacts are actually stored to current directory but logs shows another location:

In process file artifacts produced:
- For test 'FeedbackTab_NavigateToObjectFeedback': TestResults.mstest-c2fb5fba\2\FeedbackTab_NavigateToObjectFeedback_3624.zip
- For test 'FeedbackTab_NavigateToObjectFeedback': TestResults.mstest-c2fb5fba\1\FeedbackTab_NavigateToObjectFeedback_9e9866b5-687f-43c6-83ab-0c2c3de0554d.png

In VS Studio Test Explorer:
Artifacts are stored to:
C:\repo1\Testing\FunctionalTests\FunctionalTests.UITests\bin\Debug
Test report shows:

Attached files not found: 
C:\repo1\Testing\FunctionalTests\TestResults.mstest-8ccbca7f\2\FeedbackTab_NavigateToObjectFeedback_e865.zip
C:\repo1\Testing\FunctionalTests\TestResults.mstest-8ccbca7f\1\FeedbackTab_NavigateToObjectFeedback_2ecb4da8-614c-46d9-a9b2-d26eec9db2ee.png

Additional context

We are using Microsoft.Testing.Extensions.AzureDevOpsReport to publish test results in pipeline and it's working fine. All attachments are published.

主要言語
C#
スター
1.1k
フォーク
312
平均マージ
10時間 39分
マージ済み PR(30日)
349

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/testfx のほかの issue

microsoft/testfx の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。