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
Copy file name to clipboardExpand all lines: CLAUDE.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,10 +89,22 @@ When in planning mode:
89
89
```bash
90
90
dotnet restore
91
91
dotnet build --no-restore
92
+
93
+
# Preferred: parallelizable tests (no static state)
92
94
dotnet test --project Tests/UnitTestsParallelizable --no-build
93
-
dotnet test --project Tests/UnitTests --no-build
95
+
96
+
# Tests that require process-wide static state (Application.Init, etc.)
97
+
dotnet test --project Tests/UnitTests.NonParallelizable --no-build
98
+
99
+
# Legacy tests — do NOT add new tests here; candidates for rewrite/deletion
100
+
dotnet test --project Tests/UnitTests.Legacy --no-build
101
+
102
+
# Run a single test by fully-qualified name
103
+
dotnet test --project Tests/UnitTestsParallelizable --no-build --filter "FullyQualifiedName~MyTestClass.MyTestMethod"
94
104
```
95
105
106
+
See `Tests/README.md` for the full list of test projects (including `IntegrationTests`, `StressTests`, `Benchmarks`) and the static-state classification that determines where a new test belongs.
107
+
96
108
## Key Concepts
97
109
98
110
| Concept | Documentation |
@@ -118,7 +130,7 @@ dotnet test --project Tests/UnitTests --no-build
118
130
119
131
## Testing
120
132
121
-
-Prefer `UnitTestsParallelizable` over`UnitTests`
133
+
-Add new tests to `UnitTestsParallelizable`; use`UnitTests.NonParallelizable` only when static state is unavoidable. Never add to `UnitTests.Legacy`.
0 commit comments