Proposal for running dotnet test with Microsoft.Testing.Platform #45471
Labels
Area-DotNet Test
config-system-candidate
Issues that could be solved cleanly if the .NET CLI had a git-like configuration system
Current State
Currently, when we run
dotnet test
in CLI, we use vstest as a test runner/driver to run tests in test projects.Motivation
With
dotnet test
, users should be able to use Microsoft Testing Platform to run their tests for the sake of improving their experience. They should have the option to opt-in/out this new experience.The reason for opting-in/out this experience is
Note
We want to design in a way that is future proof and easy to keep backwards compatible.
Proposal
Make this option configurable in global.json. We chose global.json because it's located on the current directory level or its parent directories and is picked up by the dotnet sdk.
Here is a global.json sample:
Examples of Usage
1. Example 1
It contains the properties below:
2. Example 2
This design is extendable. If later on we decided to support dotnet test as an external dotnet tool.
We can simply add the type/source property and other options as well.
Default
The text was updated successfully, but these errors were encountered: