[Epic-Ideas-from-Alex] Observability in Test Explorer: traces, video and logs attached to each failed test

クローズ
#3,448 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp, playwright

調査の方向性

Start by reading the Playwright .NET test runner integrations for Visual Studio, VS Code, and Azure DevOps, then trace how test results and attachments are currently reported. The issue proposes per-test trace, video, screenshot, and log attachments, Trace Viewer links, OpenTelemetry spans, and structured logging. Done means failed test results expose the requested artifacts and links across the named test environments; the issue does not identify specific files or tests.

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

説明

🚀 Feature Request

Make debugging a failed Playwright test in Visual Studio / VS Code / Azure DevOps a one-click experience:

  • Attach artifacts to test results: trace.zip, video, screenshots and console / network logs as VSTest / MTP result attachments for each failed test.
  • "Open trace" from Test Explorer: a link or button that opens the Trace Viewer (local show-trace or trace.playwright.dev) for the selected failed test.
  • OpenTelemetry: emit an ActivitySource span per API call, correlated with the app under test (ASP.NET Core, HttpClient), so a failing step shows server-side spans next to it.
  • Azure DevOps / GitHub Actions: publish attachments in the format the test tab understands, plus a summary with direct trace links.
  • Structured logs via ILogger instead of Console.Error / DEBUG env vars.
Example

Test Explorer → failed CheckoutTests.Pay → Attachments: trace.zip, video.webm, console.log → Open in Trace Viewer.

In Azure Pipelines, the Tests tab shows the same attachments, and the run summary links each failure to its trace.

Motivation

Today the trace / video setup is hand-written per project, and the artifacts sit in folders disconnected from the test result that produced them.

Tying artifacts and telemetry to each test result is the biggest everyday time-saver for teams triaging CI failures. It also makes Playwright .NET competitive with integrated experiences in other ecosystems.

主要言語
C#
スター
3k
フォーク
307
平均マージ
1日 14時間
マージ済み PR(30日)
32

環境構築

はじめの一歩

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

microsoft/playwright-dotnet のほかの issue

microsoft/playwright-dotnet の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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