MSTest test artifacts are stored to wrong location
Maintainer thường phản hồi trong vòng 1 ngày
Một pull request liên quan đã được merge.
- #12239 của @Evangelink — đã merge
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
Test artifacts are stored to wrong location
Version used
MSTest 4.5.2
MTP 2.5.2
Steps To Reproduce
- Run test with command line or in VisualStudio Test Explorer
- Wait till test is completed
- 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.
- Ngôn ngữ chính
- C#
- Star
- 1.1k
- Fork
- 314
- Merge trung bình
- 11 giờ 9 phút
- Pull request đã merge (30 ngày)
- 340
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/testfx
-
type/breaking-change
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Remove obsolete MSTest 5 and Microsoft.Testing.Platform 3 compatibility APIs and configuration aliasesCó thể đã có người làm @Evangelink đã nhận hôm nay. Đang mởtype/breaking-change
microsoft/testfx#12312 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/analyzers area/assertion
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
microsoft/testfx#12260 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/assertion needs/triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
Maintainer thường phản hồi trong vòng 1 ngày
-
type/automation type/test-gap
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 15/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/testfx
Issue tương tự
-
.NET Docs Next Major State: Needs Discussion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsentry/sentry-dotnet#5912 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
BeyondDimension/SteamTools#4163 · 1 bình luận ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 90/100
ShareX/XerahS#316 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
SubtitleEdit/subtitleedit#16825 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci-flake kind:tests size:S type:bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
elsa-workflows/elsa-foundation#4058 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày