From 39a84ecbc9477eab7405ac698df6b1af8afa192b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 28 Sep 2026 04:49:03 +0000 Subject: [PATCH 1/2] [docs] Update glossary - daily scan Add MSTEST0087 (duplicate DataRow display name) and MSTest.Windows.UIAutomation entries. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- docs/glossary.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/glossary.md b/docs/glossary.md index 626e8528c9..e33c3d1f49 100644 --- a/docs/glossary.md +++ b/docs/glossary.md @@ -262,6 +262,10 @@ An MSTest attribute (`[MemberConditionAttribute]`) in `Microsoft.VisualStudio.Te An MSTest analyzer (`RedundantTestMethodAttributeAnalyzer`, informational severity, enabled by default) that flags a method-level attribute as redundant when the containing `[TestClass]` already establishes equivalent or more restrictive behavior, so the method-level copy has no effect. Covered attribute pairs include `[OSCondition]`, `[ArchitectureCondition]`, `[CICondition]`, `[DoNotParallelize]`, `[ResourceLock]`, `[Retry]`, `[Ignore]`, `[TestCategory]`, `[TestProperty]`, `[DeploymentItem]`, and `[DependsOn]`. A companion C# code fix (`RedundantTestMethodAttributeFixer`) removes the flagged attribute. Introduced in [PR #11267](https://github.com/microsoft/testfx/pull/11267). See also [ResourceLockAttribute](#resourcelockattribute). +### MSTEST0087 (duplicate DataRow display name) + +An MSTest analyzer (`DuplicateDataRowDisplayNameAnalyzer`, warning severity, enabled by default) that flags a `[DataRow(DisplayName = "...")]` argument on a `[TestMethod]` when another `[DataRow]` on the same method already declares the same non-empty `DisplayName`. Duplicate display names produce ambiguous or colliding test-result identities in reports and test explorers. Comparison is ordinal (case-sensitive) and only considers explicit `DisplayName` values — rows without an explicit `DisplayName` are not compared. Introduced in [PR #11409](https://github.com/microsoft/testfx/pull/11409). + ### MSTest Microsoft's unit testing framework for .NET. Provides attributes (`[TestClass]`, `[TestMethod]`, `[DataRow]`, etc.), assertions (`Assert`, `CollectionAssert`), and lifecycle hooks for writing and organizing tests. Packaged as `MSTest.TestFramework`, `MSTest.TestAdapter`, `MSTest.Analyzers`, and `MSTest.Sdk`. @@ -362,6 +366,10 @@ For assembly-level parallelization properties, see [MSTestParallelizeScope / MST A Roslyn C# source-generator package (`MSTest.SourceGeneration`) that enables MSTest test projects to be published with Native AOT (`PublishAot=true`) or trimming (`PublishTrimmed=true`) without IL2026/IL3050 warnings or `MissingMethodException` failures at runtime. At compile time the generator scans all `[TestClass]`-decorated types and emits a `[ModuleInitializer]`-decorated registration method containing `[DynamicDependency]` hints and a pre-resolved `MethodInfo` dictionary, replacing the per-startup `Assembly.GetTypes()` and `Type.GetMethods()` reflection scans. MSTest.Sdk includes the package automatically for NativeAOT projects; set `true` to opt in for other configurations. Without MSTest.Sdk, add a `` to `MSTest.SourceGeneration`. Existing test code needs no changes. Several shapes are outside the generator's current scope (generic test classes, inherited `[TestClass]`, `file`-local types, etc.) — see `docs/source-generator/design.md` for the full scope and known limitations. +### MSTest.Windows.UIAutomation + +A [MSTest.Sdk](#mstestsdk)-integrated package (`MSTest.Windows.UIAutomation`) that provides desktop UI Automation helpers for tests targeting a Windows target framework (e.g., `net8.0-windows`); the SDK errors at build time if the project's `TargetFramework` does not resolve to the `windows` target platform identifier. Opt in with `true`, which adds the package reference and (when `ImplicitUsings` is enabled) an implicit `using Microsoft.VisualStudio.TestTools.UnitTesting.Windows.UIAutomation;`. `MSTestWindowsUIAutomationVersion` overrides the package version, defaulting to the MSTest.Sdk version. Introduced in [PR #10862](https://github.com/microsoft/testfx/pull/10862). + ### MSTestParallelizeScope / MSTestParallelizeWorkers MSBuild properties that let users opt in to MSTest assembly-level parallelization without authoring a C# source file. Setting `` emits `[assembly: Parallelize(Scope = ExecutionScope.X)]`; setting `` emits `[assembly: Parallelize(Workers = N)]`; both together emit `[assembly: Parallelize(Scope = …, Workers = …)]`. Setting scope to `None` emits `[assembly: DoNotParallelize]` instead. Both properties require `GenerateAssemblyInfo` to be `true` and act via the standard `AssemblyAttribute` MSBuild item. Introduced in [PR #8233](https://github.com/microsoft/testfx/pull/8233). From 6486adc318a6b72ab6519af554e80c33c4bf89c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Mon, 28 Sep 2026 09:26:18 +0200 Subject: [PATCH 2/2] Update MSTest analyzer description for clarity Clarified the definition of the MSTest analyzer regarding duplicate DataRow display names, specifying that non-blank DisplayNames are considered. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- docs/glossary.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/glossary.md b/docs/glossary.md index e33c3d1f49..9933997c01 100644 --- a/docs/glossary.md +++ b/docs/glossary.md @@ -264,7 +264,7 @@ An MSTest analyzer (`RedundantTestMethodAttributeAnalyzer`, informational severi ### MSTEST0087 (duplicate DataRow display name) -An MSTest analyzer (`DuplicateDataRowDisplayNameAnalyzer`, warning severity, enabled by default) that flags a `[DataRow(DisplayName = "...")]` argument on a `[TestMethod]` when another `[DataRow]` on the same method already declares the same non-empty `DisplayName`. Duplicate display names produce ambiguous or colliding test-result identities in reports and test explorers. Comparison is ordinal (case-sensitive) and only considers explicit `DisplayName` values — rows without an explicit `DisplayName` are not compared. Introduced in [PR #11409](https://github.com/microsoft/testfx/pull/11409). +An MSTest analyzer (`DuplicateDataRowDisplayNameAnalyzer`, warning severity, enabled by default) that flags a `[DataRow(DisplayName = "...")]` argument on a `[TestMethod]` when another `[DataRow]` on the same method already declares the same non-blank `DisplayName`. Duplicate display names produce ambiguous or colliding test-result identities in reports and test explorers. Comparison is ordinal (case-sensitive) and only considers explicit non-blank `DisplayName` values — missing, null, empty, or whitespace-only names are not compared. Introduced in [PR #11409](https://github.com/microsoft/testfx/pull/11409). ### MSTest