Skip to content

Document MSTest and MTP feature versions#54408

Open
Evangelink wants to merge 5 commits into
dotnet:mainfrom
Evangelink:evangelink/document-mstest-mtp-feature-versions
Open

Document MSTest and MTP feature versions#54408
Evangelink wants to merge 5 commits into
dotnet:mainfrom
Evangelink:evangelink/document-mstest-mtp-feature-versions

Conversation

@Evangelink

@Evangelink Evangelink commented Jun 16, 2026

Copy link
Copy Markdown
Member

Summary

Analyzes all notable MSTest and Microsoft.Testing.Platform (MTP) features against the authoritative microsoft/testfx changelogs (docs/Changelog.md for MSTest, docs/Changelog-Platform.md for MTP) and ensures each is documented with the version it was introduced in. 14 files under docs/core/testing/ updated. All new <xref> IDs verified against the .NET API catalog; markdownlint clean.

Note

Created with AI assistance (ai-usage: ai-assisted added where missing).

MSTest (versions from changelog)

  • Assertions: collection asserts (3.8), comparison asserts (3.10), string-matching asserts (3.10); Assert.That + [CallerArgumentExpression] in all asserts (4.0); added missing Assert.EndsWith (3.10) and Assert.IsExactInstanceOfType/IsNotExactInstanceOfType (4.1).
  • Data-driven: TestDataRow<T> (3.8), DynamicData field source (3.11) + auto-detected source type (3.8) + Arguments (3.10), generic test methods (3.8), DateOnly/TimeOnly rows (3.10).
  • Exec/lifecycle/context/config: RetryBaseAttribute/ConditionBaseAttribute/OSConditionAttribute (3.8), CIConditionAttribute (3.10), separate class/assembly cleanup results (4.2), TestContext.TestRunCount (3.9), experimental TestContext.Current (4.2), categories in TestContext.Properties (4.2), launchDebuggerOnTestFailure (4.2), GitHubWorkItemAttribute (3.8).

MTP (versions from platform changelog)

  • CLI/terminal: --diagnostic-file-prefix/--diagnostic-synchronous-write rename notes (2.0.0); --progress + --no-progress deprecation, LLM-environment behavior (2.3.0).
  • Reports: corrected --report-trx-filename default/placeholders, TRX streaming + Description field; new HTML, JUnit, CTRF report extensions (2.3.0) with source-verified option names.
  • Config/architecture: environmentVariables + CLI-options-in-testconfig.json + NO_COLOR (2.3.0), OpenTelemetry intro (2.1.0), ITestApplicationLifecycleCallbacksITestHostApplicationLifetime removal/replacement (2.0.0), two-stage Ctrl+C (2.3.0).

Reviewer notes

  • MSTest 4.3.0 features intentionally excluded (unreleased, not yet in repo): new collection asserts, class-level [Retry], [AssemblyFixtureProvider], [MemberCondition], MSTEST0064-0070, random order, source generator, etc.
  • The HTML/JUnit/CTRF sections include an MSBuild auto-registration note (GenerateTestingPlatformEntryPoint) worth a quick confirmation.
  • 2.3.0 content is included because the repo already documents other 2.3.0 features ahead of release.

Internal previews

Toggle expand/collapse
📄 File 🔗 Preview link
docs/core/testing/microsoft-testing-platform-architecture-extensions.md Build extensions for Microsoft.Testing.Platform (MTP)
docs/core/testing/microsoft-testing-platform-cli-options.md Microsoft.Testing.Platform (MTP) CLI options reference
docs/core/testing/microsoft-testing-platform-config.md Microsoft.Testing.Platform (MTP) configuration settings
docs/core/testing/microsoft-testing-platform-open-telemetry.md docs/core/testing/microsoft-testing-platform-open-telemetry
docs/core/testing/microsoft-testing-platform-run-and-debug.md Run and debug tests
docs/core/testing/microsoft-testing-platform-terminal-output.md Microsoft.Testing.Platform (MTP) terminal output
docs/core/testing/microsoft-testing-platform-test-reports.md Test reports
docs/core/testing/mstest-analyzers/mstest0047.md MSTEST0047: Unused TestContext parameter suppressor
docs/core/testing/mstest-analyzers/overview.md docs/core/testing/mstest-analyzers/overview
docs/core/testing/mstest-analyzers/suppression-rules.md MSTest suppression rules
docs/core/testing/unit-testing-mstest-configure.md Configure MSTest
docs/core/testing/unit-testing-mstest-writing-tests-assertions.md MSTest assertions
docs/core/testing/unit-testing-mstest-writing-tests-controlling-execution.md Test execution and control in MSTest
docs/core/testing/unit-testing-mstest-writing-tests-data-driven.md docs/core/testing/unit-testing-mstest-writing-tests-data-driven
docs/core/testing/unit-testing-mstest-writing-tests-lifecycle.md MSTest lifecycle
docs/core/testing/unit-testing-mstest-writing-tests-organizing.md Run only integration tests
docs/core/testing/unit-testing-mstest-writing-tests-testcontext.md MSTest TestContext
docs/navigate/devops-testing/toc.yml docs/navigate/devops-testing/toc

Analyze MSTest (3.6-4.2) and Microsoft.Testing.Platform (1.5-2.3) features
against the microsoft/testfx changelogs and add missing "introduced in"
version annotations, document previously undocumented features, and correct
stale content (TRX default filename, removed ITestApplicationLifecycleCallbacks,
testconfig.json CLI-option support).

All new xref IDs verified against the .NET API catalog; markdownlint clean.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 16, 2026 12:12
@dotnetrepoman dotnetrepoman Bot added this to the June 2026 milestone Jun 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the .NET testing documentation under docs/core/testing/ to consistently annotate MSTest and Microsoft.Testing.Platform (MTP) features with the version where each feature was introduced, based on the upstream microsoft/testfx changelogs. It also adds ai-usage: ai-assisted frontmatter where it was missing.

Changes:

  • Adds “introduced in version …” notes across MSTest docs (assertions, data-driven tests, execution control, lifecycle, TestContext, and metadata/work items).
  • Expands MTP docs with versioned notes for reports (including HTML/JUnit/CTRF), terminal output, config capabilities, OpenTelemetry, and CLI option renames/removals.
  • Refreshes ms.date values to reflect the update date.
Show a summary per file
File Description
docs/core/testing/unit-testing-mstest-writing-tests-testcontext.md Adds versioned notes for TestRunCount, categories in TestContext.Properties, and experimental TestContext.Current.
docs/core/testing/unit-testing-mstest-writing-tests-organizing.md Adds version-introduction note for GitHubWorkItemAttribute.
docs/core/testing/unit-testing-mstest-writing-tests-lifecycle.md Notes MSTest 4.2 cleanup failures as separate results.
docs/core/testing/unit-testing-mstest-writing-tests-data-driven.md Adds version annotations for generic tests, DateOnly/TimeOnly, DynamicData behaviors, field support, Arguments, and TestDataRow<T>.
docs/core/testing/unit-testing-mstest-writing-tests-controlling-execution.md Adds version annotations for retry/condition base types and built-in conditions.
docs/core/testing/unit-testing-mstest-writing-tests-assertions.md Adds version notes for new assertion behaviors/APIs (including Assert.That and newer assert families).
docs/core/testing/unit-testing-mstest-configure.md Documents LaunchDebuggerOnTestFailure/launchDebuggerOnTestFailure with version context.
docs/core/testing/microsoft-testing-platform-test-reports.md Adds versioned TRX details and new sections for HTML/JUnit/CTRF reports.
docs/core/testing/microsoft-testing-platform-terminal-output.md Documents progress option changes and LLM/AI environment behavior (MTP 2.3.0).
docs/core/testing/microsoft-testing-platform-run-and-debug.md Adds versioned note for two-stage Ctrl+C behavior.
docs/core/testing/microsoft-testing-platform-open-telemetry.md Adds version availability note for the OpenTelemetry extension.
docs/core/testing/microsoft-testing-platform-config.md Documents new 2.3.0 capabilities (environmentVariables, CLI options via config, and NO_COLOR).
docs/core/testing/microsoft-testing-platform-cli-options.md Adds versioned notes about diagnostic option renames/removals in MTP 2.0.0.
docs/core/testing/microsoft-testing-platform-architecture-extensions.md Updates lifecycle extension guidance for the v1→v2 replacement and updates related references.

Copilot's findings

  • Files reviewed: 14/14 changed files
  • Comments generated: 3

Comment thread docs/core/testing/unit-testing-mstest-writing-tests-data-driven.md Outdated
Comment thread docs/core/testing/microsoft-testing-platform-architecture-extensions.md Outdated
Comment thread docs/core/testing/microsoft-testing-platform-architecture-extensions.md Outdated
Evangelink and others added 2 commits June 16, 2026 14:47
Add a shared 'Report file names' section listing the placeholder set and link
each --report-*-filename option to it. State the default file name for TRX, HTML,
JUnit, and CTRF reports (verified from testfx source), and note the HTML/JUnit/CTRF
extensions are experimental.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add the missing MSTEST0047 (suppress IDE0060 for the TestContext parameter of
fixture methods, introduced in MSTest 3.10) analyzer page, and reference it from
the analyzers overview, suppression rules list, and TOC. Document the new
--report-azdo-summary and --report-azdo-stackframe-filter options (MTP 2.3.0).

Verified against microsoft/testfx source. Markdownlint clean.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Evangelink Evangelink requested a review from a team as a code owner June 16, 2026 12:55
Fix three ITestHostProcessLifetimeHandler sequence links that pointed to the
wrong section anchor, and clarify that field data sources require MSTest 3.11.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread docs/core/testing/microsoft-testing-platform-cli-options.md Outdated
Comment thread docs/core/testing/microsoft-testing-platform-test-reports.md Outdated
Comment thread docs/core/testing/microsoft-testing-platform-test-reports.md Outdated
Comment thread docs/core/testing/microsoft-testing-platform-test-reports.md Outdated
Comment thread docs/core/testing/microsoft-testing-platform-test-reports.md Outdated
Comment thread docs/core/testing/microsoft-testing-platform-cli-options.md Outdated
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
@Evangelink

Copy link
Copy Markdown
Member Author

@copilot resolve the merge conflicts in this pull request

@Evangelink Evangelink enabled auto-merge (squash) June 17, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants