You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 141e605
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .github/agents/expert-reviewer.agent.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -495,7 +495,7 @@ files outside the specialist workflow's scope.
495
495
496
496
**Severity: MAJOR**
497
497
498
-
Applies only to changes in `src/Analyzers/`.
498
+
Applies only to changes in `src/MSTest/MSTest.Analyzers*/`, `src/MSTest/MSTest.GlobalConfigsGenerator/`, `src/MSTest/MSTest.SourceGeneration/`, and their shared analyzer sources in `src/MSTest/Shared/`.
499
499
500
500
**Rules:**
501
501
1. Analyzers must not throw or crash on any syntactically valid input.
@@ -543,7 +543,7 @@ Applies only to changes in `src/Analyzers/`.
543
543
544
544
**Severity: MAJOR**
545
545
546
-
Applies to changes in `src/Platform/` involving serialization/deserialization.
546
+
Applies to changes in `src/MTP/` involving serialization/deserialization.
547
547
548
548
**Rules:**
549
549
1. Changes to serialized types must not break wire compatibility with older clients.
@@ -698,8 +698,8 @@ Applies to changes in `eng/**/*.ps1`, `.github/scripts/**/*.ps1`, and any `*.ps1
698
698
| 2 |**No `init` on Public API**| New public API MUST NOT use `init` accessors. Existing MTP `init` accessors are grandfathered. |`.github/copilot-instructions.md`|
699
699
| 3 |**Localization**|`.resx` for user-facing strings. Never edit `.xlf` — build generates them. `{Locked="…"}` is a substring match: prefer bare invariant tokens and add punctuation only to prevent collisions (`'const'` when the message also contains `constant`). |`src/*/Strings.resx`|
700
700
| 4 |**Test Architecture**| MSTest unit tests use `TestFramework.ForTestingMSTest`. MTP/analyzer tests use MSTest. Follow test project's assertion library policy (check `BannedSymbols.txt`). |`test/Utilities/TestFramework.ForTestingMSTest`|
701
-
| 5 |**IPC Protocol**| Named pipes, JSON-RPC between test platform and runners. Wire format backward-compatible. |`src/Platform/`|
702
-
| 6 |**Analyzer IDs**|`MSTEST0001`+ for MSTest analyzers. Unique across codebase. |`src/Analyzers/`|
701
+
| 5 |**IPC Protocol**| Named pipes, JSON-RPC between test platform and runners. Wire format backward-compatible. |`src/MTP/`|
702
+
| 6 |**Analyzer IDs**|`MSTEST0001`+ for MSTest analyzers. Unique across codebase. |`src/MSTest/MSTest.Analyzers/`|
703
703
| 7 |**Multi-TFM Targeting**| Derive actual targets and language versions from owning projects/imports and linked consumers; verify polyfills per compiled path. | Project files, `Directory.Build.*`, `src/Polyfills/`|
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,13 @@ This is a .NET based repository that contains the MSTest testing framework and M
6
6
7
7
The codebase ships several distinct (but related) products. Knowing which product a change belongs to is essential because they have different conventions, target frameworks, and public API surfaces:
8
8
9
-
-`src/Platform/Microsoft.Testing.Platform` — Microsoft.Testing.Platform (MTP), a lightweight, in-process test host that replaces VSTest. Most other folders under `src/Platform/` are MTP extensions (`TrxReport`, `CrashDump`, `HangDump`, `HotReload`, `Retry`, `Telemetry`, `HtmlReport`, `AzureDevOpsReport`, `MSBuild`, `VSTestBridge`, …).
10
-
-`src/TestFramework` — MSTest itself: the public `Microsoft.VisualStudio.TestTools.UnitTesting` API (attributes, `Assert`, `TestContext`, …) plus `TestFramework.Extensions`.
11
-
-`src/Adapter` — bridges MSTest to test hosts: `MSTest.TestAdapter` (VSTest adapter) and `MSTestAdapter.PlatformServices` (platform-services abstraction shared by both hosts).
12
-
-`src/Analyzers` — Roslyn analyzers and code fixes shipped as `MSTest.Analyzers`.
13
-
-`src/Package/MSTest.Sdk` — the MSBuild project SDK that wires the pieces together for consumers.
9
+
The only source subfolders are `MTP`, `MSTest`, and `Polyfills`. MSTest projects sit directly under `src/MSTest`, without adapter, analyzer, framework, or package grouping folders. `Shared`, `PlatformPackage`, and `APIHistory` hold shared sources, packaging support, and archived API records; `Polyfills` contains compatibility sources shared across both products.
10
+
11
+
-`src/MTP/Microsoft.Testing.Platform` — Microsoft.Testing.Platform (MTP), a lightweight, in-process test host that replaces VSTest. Most other folders under `src/MTP/` are MTP extensions (`TrxReport`, `CrashDump`, `HangDump`, `HotReload`, `Retry`, `Telemetry`, `HtmlReport`, `AzureDevOpsReport`, `MSBuild`, `VSTestBridge`, …).
12
+
-`src/MSTest/TestFramework` — MSTest itself: the public `Microsoft.VisualStudio.TestTools.UnitTesting` API (attributes, `Assert`, `TestContext`, …). The sibling `TestFramework.Compatibility` project provides the `TestFramework.Extensions` compatibility facade.
13
+
-`src/MSTest/MSTest.TestAdapter` and `src/MSTest/MSTestAdapter.PlatformServices` — bridge MSTest to test hosts (the VSTest adapter and platform-services abstraction shared by both hosts).
14
+
-`src/MSTest/MSTest.Analyzers*` — Roslyn analyzers and code fixes shipped as `MSTest.Analyzers`.
15
+
-`src/MSTest/MSTest.Sdk` — the MSBuild project SDK that wires the pieces together for consumers.
14
16
-`test/UnitTests/<Project>.UnitTests` — fast unit tests for each project.
15
17
-`test/IntegrationTests/<Project>.IntegrationTests` or `<Package>.Acceptance.IntegrationTests` — file-system / process-level tests; acceptance tests consume the packed NuGets from `artifacts/packages/<Configuration>/Shipping`.
16
18
-`test/Utilities/TestFramework.ForTestingMSTest` — the internal `TestContainer`-based framework used to unit-test MSTest itself (any public parameterless method on a `TestContainer` subclass is a test; no `[TestMethod]` needed).
@@ -91,7 +93,7 @@ You MUST minimize adding public API surface area but any newly added public API
91
93
92
94
Every packable project must carry the metadata that nuget.org renders on the package page. This is enforced at pack time by the `_ValidatePackageMetadata` target in the root [`Directory.Build.targets`](../Directory.Build.targets), which fails the build when a packable project is missing either piece — including packages that are `IsShipping=false`, because those still reach nuget.org.
93
95
94
-
- Write `<PackageDescription>` so it **leads with what the package does**, and close it with `$(CommonProductDescription)` — the shared product sentence, defaulted per product area in [`src/Directory.Build.props`](../src/Directory.Build.props) (MSTest) and [`src/Platform/Directory.Build.props`](../src/Platform/Directory.Build.props) (Microsoft.Testing.Platform). nuget.org truncates the description in search results, so the package-specific sentence has to come first.
96
+
- Write `<PackageDescription>` so it **leads with what the package does**, and close it with `$(CommonProductDescription)` — the shared product sentence, defaulted per product area in [`src/Directory.Build.props`](../src/Directory.Build.props) (MSTest) and [`src/MTP/Directory.Build.props`](../src/MTP/Directory.Build.props) (Microsoft.Testing.Platform). nuget.org truncates the description in search results, so the package-specific sentence has to come first.
95
97
- Wrap the value in `<![CDATA[ ... ]]>` and keep its continuation lines unindented. MSBuild trims a property value but not the indentation of its inner lines, so an indented multi-line description leaks the .csproj whitespace into the published text. Property references such as `$(CommonProductDescription)` are still expanded inside CDATA.
96
98
- NEVER leave the description unset. NuGet's pack targets substitute the literal placeholder `Package Description` during evaluation, which is why Arcade's own "PackageDescription must be specified" check cannot catch it and why the repo-level guard exists.
97
99
- Add a `PACKAGE.md` next to the project file. It is picked up automatically as `PackageReadmeFile` and packed into the root of the `.nupkg`.
@@ -101,7 +103,7 @@ Every packable project must carry the metadata that nuget.org renders on the pac
101
103
When making change to resource files, you MUST:
102
104
103
105
- Add a corresponding entry in the resource file (`.resx`).
104
-
- NEVER manually modify `*.xlf` files. Instead, regenerate them by running `dotnet msbuild <project>.csproj /t:UpdateXlf` on the owning project (e.g. `src/Platform/Microsoft.Testing.Platform/Microsoft.Testing.Platform.csproj`, `src/TestFramework/TestFramework/TestFramework.csproj`, or the matching analyzer project). A full repo build also regenerates them but is slower.
106
+
- NEVER manually modify `*.xlf` files. Instead, regenerate them by running `dotnet msbuild <project>.csproj /t:UpdateXlf` on the owning project (e.g. `src/MTP/Microsoft.Testing.Platform/Microsoft.Testing.Platform.csproj`, `src/MSTest/TestFramework/TestFramework.csproj`, or the matching analyzer project). A full repo build also regenerates them but is slower.
105
107
- A few resource accessors are hand-maintained — notably `PlatformResources.cs` has an `IS_MTP_UNIT_TESTS` block that must be updated when a unit test needs to read a newly added string.
106
108
-`{Locked="…"}` markers in a resource `<comment>` are matched as **substrings, not whole words**. A short locked token therefore also freezes every longer word that contains it, which blocks a legitimately translatable word. For example, `{Locked="const"}` on a message that also contains the English word *constant* locks `const` inside `constant`, so translators cannot localize it. Make each locked token unambiguous:
107
109
- Every locked token MUST occur verbatim in the corresponding `<value>`. Do not lock an option name or other contextual identifier that the user-facing string does not actually contain.
Copy file name to clipboardExpand all lines: .github/skills/post-release-activities/SKILL.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ Open a PR to the main branch to update the product versions of public samples to
55
55
### Step 8: Mark APIs and analyzers as shipped
56
56
57
57
1. Run `eng/mark-shipped.ps1` (requires PowerShell 7.0).
58
-
2. Move the contents of `src/Analyzers/MSTest.Analyzers/AnalyzerReleases.Unshipped.md` (except the first two lines that start with `;`) to `src/Analyzers/MSTest.Analyzers/AnalyzerReleases.Shipped.md`.
59
-
3. In `src/Analyzers/MSTest.Analyzers/SuppressionReleases.md`, move the rows for suppressors shipped in the release branch from `## Unshipped` to `## Release {version}` (using the full MSTest version found in Step 1). Create the release section with the existing table format if it does not exist, preserving each suppression ID, suppressed diagnostic ID, and notes. Leave suppressors not included in this release under `## Unshipped`, and remove that section if it becomes empty. If no suppressors were shipped from `## Unshipped`, leave the catalog unchanged.
58
+
2. Move the contents of `src/MSTest/MSTest.Analyzers/AnalyzerReleases.Unshipped.md` (except the first two lines that start with `;`) to `src/MSTest/MSTest.Analyzers/AnalyzerReleases.Shipped.md`.
59
+
3. In `src/MSTest/MSTest.Analyzers/SuppressionReleases.md`, move the rows for suppressors shipped in the release branch from `## Unshipped` to `## Release {version}` (using the full MSTest version found in Step 1). Create the release section with the existing table format if it does not exist, preserving each suppression ID, suppressed diagnostic ID, and notes. Leave suppressors not included in this release under `## Unshipped`, and remove that section if it becomes empty. If no suppressors were shipped from `## Unshipped`, leave the catalog unchanged.
0 commit comments