I have a solution with the global.json shown below, and several test projects that reference the MSTest.Sdk SDK.
{
"sdk": {
"version": "10.0.100-rc.2"
},
"msbuild-sdks": {
"MSTest.Sdk": "4.0.1"
},
"test": {
"runner": "Microsoft.Testing.Platform"
}
}
When I run a test project manually using dotnet test --project xxx, the TestResults directory is created next to the test executable (although it can be changed with a testconfig.json).
When I execute the tests in Visual Studio, a TestResults directory is created in the root of the solution, next to the projects, and I am unable to configure this behavior.
Does VS need a single directory for all tests? Is it possible to change this behavior?
I have a solution with the global.json shown below, and several test projects that reference the
MSTest.SdkSDK.{ "sdk": { "version": "10.0.100-rc.2" }, "msbuild-sdks": { "MSTest.Sdk": "4.0.1" }, "test": { "runner": "Microsoft.Testing.Platform" } }When I run a test project manually using
dotnet test --project xxx, theTestResultsdirectory is created next to the test executable (although it can be changed with a testconfig.json).When I execute the tests in Visual Studio, a
TestResultsdirectory is created in the root of the solution, next to the projects, and I am unable to configure this behavior.Does VS need a single directory for all tests? Is it possible to change this behavior?