Type of issue
Missing information
Description
Update the dotnet test CLI docs to include the improvements introduced in .NET 11:
- --no-dependencies: Skips building project-to-project references, matching the existing dotnet build --no-dependencies behavior.
- DOTNET_TEST_RUNNER environment variable: Selects the test runner without requiring a global.json change. Set it to VSTest or Microsoft.Testing.Platform to override global.json for the current session.
- --use-current-runtime / --ucr: Targets the current runtime during restore and build, matching the option already available on dotnet build and dotnet publish.
- --test-modules exclusion patterns: Patterns starting with ! are now treated as excludes, and whitespace between semicolons is trimmed, making YAML-folded CI expressions work correctly.
- Per-assembly test counts: The summary line for multi-assembly runs now includes per-assembly counts.
- Terminal logger arguments: --tl, --terminallogger, and --tlp are now forwarded to MSBuild instead of being passed as test application arguments.
- Live display of in-flight tests: The progress area shows tests that are running, using a new TestInProgressMessages IPC event. The panel keeps per-assembly trimming for large parallel runs and is enabled only for interactive ANSI terminals.
- Two-stage Ctrl+C cancellation: The first press stops scheduling new test apps and shows a hint; the second press force-kills all child test processes.
- --device for MAUI: Select a device per target framework when running tests for .NET MAUI projects.
- Protocol 1.1.0 output forwarding: When the test host supports protocol 1.1.0, stdout/stderr and IOutputDevice messages are streamed live through the terminal reporter instead of being shown only on failure.
- --timeout and --maximum-failed-tests options in Microsoft Testing Platform mode
Page URL
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-test-mtp
Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/tools/dotnet-test-mtp.md
Document Version Independent Id
8e26d044-aa1e-3863-7731-a382e9b50dd3
Platform Id
345bb8be-53d8-2135-c78b-e42322e57055
Article author
@meaghanlewis
Metadata
- ID: fbb85f0a-6271-5057-288b-c19a6245c24f
- PlatformId: 345bb8be-53d8-2135-c78b-e42322e57055
- Service: dotnet-fundamentals
Related Issues
Type of issue
Missing information
Description
Update the dotnet test CLI docs to include the improvements introduced in .NET 11:
Page URL
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-test-mtp
Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/tools/dotnet-test-mtp.md
Document Version Independent Id
8e26d044-aa1e-3863-7731-a382e9b50dd3
Platform Id
345bb8be-53d8-2135-c78b-e42322e57055
Article author
@meaghanlewis
Metadata
Related Issues