Skip to content

Configure TestResults directory from Visual Studio #6790

@jcasale

Description

@jcasale

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions