Skip to content

Conversation

@Evangelink
Copy link
Member

@Evangelink Evangelink commented Dec 2, 2025

@Evangelink Evangelink force-pushed the dev/amauryleve/dotnet-test branch from e41112a to 1e3d9d5 Compare December 29, 2025 16:34
@Evangelink Evangelink marked this pull request as ready for review December 29, 2025 16:35
@Evangelink Evangelink requested review from a team and meaghanlewis as code owners December 29, 2025 16:35
Copilot AI review requested due to automatic review settings December 29, 2025 16:35
Copy link
Contributor

Copilot AI left a comment

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 splits the dotnet test documentation from a single page with tabs into separate pages for better clarity and navigation. The main dotnet-test.md file now serves as an overview that directs users to specific documentation for VSTest and Microsoft Testing Platform (MTP).

Key Changes

  • Restructured the main dotnet-test.md to provide an overview with guidance on choosing between test runners
  • Created dotnet-test-vstest.md containing comprehensive VSTest-specific documentation
  • Created dotnet-test-mtp.md containing Microsoft Testing Platform-specific documentation

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 11 comments.

File Description
docs/core/tools/dotnet-test.md Converted from comprehensive reference to overview page with test runner selection guidance
docs/core/tools/dotnet-test-vstest.md New file containing all VSTest-specific command-line options, examples, and documentation (applies to .NET 6 SDK and later)
docs/core/tools/dotnet-test-mtp.md New file containing all MTP-specific command-line options, examples, and documentation (applies to .NET 10 SDK and later)
docs/navigate/tools-diagnostics/toc.yml Updated table of contents to include the new sub-pages under dotnet test

```

The short form `-p` can be used for `--property`. The same applies for `/property:property=value` and its short form is `/p`.
More informatiom about the available arguments can be found in [the dotnet msbuild documentation](dotnet-msbuild.md).
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

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

Spelling error: "informatiom" should be "information"

Suggested change
More informatiom about the available arguments can be found in [the dotnet msbuild documentation](dotnet-msbuild.md).
More information about the available arguments can be found in [the dotnet msbuild documentation](dotnet-msbuild.md).

Copilot uses AI. Check for mistakes.
- 5400s, 5400sec, 5400second, 5400seconds
- 5400000ms, 5400000mil, 5400000millisecond, 5400000milliseconds

When no unit is used (for example, 5400000), the value is assumed to be in milliseconds. When used together with data driven tests, the timeout behavior depends on the test adapter used. For xUnit, NUnit. and MSTest 2.2.4+, the timeout is renewed after every test case. For MSTest before version 2.2.4, the timeout is used for all test cases. This option is supported on Windows with `netcoreapp2.1` and later, on Linux with `netcoreapp3.1` and later, and on macOS with `net5.0` or later. Implies `--blame` and `--blame-hang`.
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

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

Missing Oxford comma: In the list "For xUnit, NUnit. and MSTest 2.2.4+", there should be a comma before "and". It should be "For xUnit, NUnit, and MSTest 2.2.4+". Also note there's an extra period after "NUnit" that should be a comma.

Copilot generated this review using guidance from repository custom instructions.
Comment on lines +205 to +206
- [Microsoft.Testing.Platform](../../../docs/core/testing/microsoft-testing-platform-intro.md)
- [Microsoft.Testing.Platform extensions](../../../docs/core/testing/microsoft-testing-platform-extensions.md)
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

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

Incorrect relative link paths: The links should use relative paths from the current file location without the redundant path prefix. Change from "../../../docs/core/testing/microsoft-testing-platform-intro.md" to "../testing/microsoft-testing-platform-intro.md" and from "../../../docs/core/testing/microsoft-testing-platform-extensions.md" to "../testing/microsoft-testing-platform-extensions.md".

Suggested change
- [Microsoft.Testing.Platform](../../../docs/core/testing/microsoft-testing-platform-intro.md)
- [Microsoft.Testing.Platform extensions](../../../docs/core/testing/microsoft-testing-platform-extensions.md)
- [Microsoft.Testing.Platform](../testing/microsoft-testing-platform-intro.md)
- [Microsoft.Testing.Platform extensions](../testing/microsoft-testing-platform-extensions.md)

Copilot uses AI. Check for mistakes.

- **`-e|--environment <NAME="VALUE">`**

Sets the value of an environment variable. Creates the variable if it does not exist, overrides if it does exist. Use of this option will force the tests to be run in an isolated process. The option can be specified multiple times to provide multiple variables.
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

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

Missing contraction: According to the Markdown writing style guidelines, use contractions for a conversational tone. Change "does not" to "doesn't" in both occurrences.

Copilot generated this review using guidance from repository custom instructions.

- **`--no-launch-profile`**

Do not attempt to use launchSettings.json to configure the application. By default, `launchSettings.json` is used, which can apply environment variables and command-line arguments to the test executable.
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

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

Missing contraction: According to the Markdown writing style guidelines, use contractions for a conversational tone. Change "Do not" to "Don't" at the start of the sentence.

Copilot generated this review using guidance from repository custom instructions.

- **`--test-modules <EXPRESSION>`**

Filters test modules using file globbing in .NET. Only tests belonging to those test modules will run. For more information and examples on how to use file globbing in .NET, see [File globbing](../../../docs/core/extensions/file-globbing.md).
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

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

Incorrect relative link path: The link should use a relative path from the current file location without the redundant path prefix. Change from "../../../docs/core/extensions/file-globbing.md" to "../../extensions/file-globbing.md" since this file is in docs/core/tools/ and the target is in docs/core/extensions/.

Suggested change
Filters test modules using file globbing in .NET. Only tests belonging to those test modules will run. For more information and examples on how to use file globbing in .NET, see [File globbing](../../../docs/core/extensions/file-globbing.md).
Filters test modules using file globbing in .NET. Only tests belonging to those test modules will run. For more information and examples on how to use file globbing in .NET, see [File globbing](../extensions/file-globbing.md).

Copilot uses AI. Check for mistakes.

- **`args`**

Specifies extra arguments to pass to the test application(s). Use a space to separate multiple arguments. For more information and examples on what to pass, see [Microsoft.Testing.Platform overview](../../../docs/core/testing/microsoft-testing-platform-intro.md) and [Microsoft.Testing.Platform extensions](../../../docs/core/testing/microsoft-testing-platform-extensions.md).
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

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

Incorrect relative link paths: The links should use relative paths from the current file location without the redundant path prefix. Change from "../../../docs/core/testing/microsoft-testing-platform-intro.md" to "../testing/microsoft-testing-platform-intro.md" and from "../../../docs/core/testing/microsoft-testing-platform-extensions.md" to "../testing/microsoft-testing-platform-extensions.md".

Suggested change
Specifies extra arguments to pass to the test application(s). Use a space to separate multiple arguments. For more information and examples on what to pass, see [Microsoft.Testing.Platform overview](../../../docs/core/testing/microsoft-testing-platform-intro.md) and [Microsoft.Testing.Platform extensions](../../../docs/core/testing/microsoft-testing-platform-extensions.md).
Specifies extra arguments to pass to the test application(s). Use a space to separate multiple arguments. For more information and examples on what to pass, see [Microsoft.Testing.Platform overview](../testing/microsoft-testing-platform-intro.md) and [Microsoft.Testing.Platform extensions](../testing/microsoft-testing-platform-extensions.md).

Copilot uses AI. Check for mistakes.

Runs the tests in blame mode. This option is helpful in isolating problematic tests that cause the test host to crash. When a crash is detected, it creates a sequence file in `TestResults/<Guid>/<Guid>_Sequence.xml` that captures the order of tests that were run before the crash.

This option does not create a memory dump and is not helpful when the test is hanging.
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

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

Missing contractions: According to the Markdown writing style guidelines, use contractions for a conversational tone. Change "does not" to "doesn't" and "is not" to "isn't".

Copilot generated this review using guidance from repository custom instructions.

> [!NOTE]
> You can use only one of the following options at a time: `--project`, `--solution`, or `--test-modules`. These options can't be combined.
> In addition, when using `--test-modules`, you can't specify `--arch`, `--configuration`, `--framework`, `--os`, or `--runtime`. These options are not relevant for an already-built module.
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

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

Missing contraction: According to the Markdown writing style guidelines, use contractions for a conversational tone. Change "are not" to "aren't".

Copilot generated this review using guidance from repository custom instructions.
Short form `-r` available starting in .NET SDK 7.

> [!NOTE]
> Running tests for a solution with a global `RuntimeIdentifier` property (explicitly or via `--arch`, `--runtime`, or `--os`) is not supported. Set `RuntimeIdentifier` on an individual project level instead.
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

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

Missing contraction: According to the Markdown writing style guidelines, use contractions for a conversational tone. Change "is not" to "isn't".

Copilot generated this review using guidance from repository custom instructions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to improve dotnet test documentation page

2 participants