JetBrains Rider 2023.3 Help

VSTest

JetBrains Rider can run tests from any custom test framework that uses Visual Studio test adapter extensibility.

To enable VSTest adapters support, select the corresponding checkbox on the Build, Execution, Deployment | Unit Testing | VSTest page of JetBrains Rider settings Ctrl+Alt+S.

In contrast to test frameworks natively supported by JetBrains Rider, tests from VSTest adapters are only discovered after test projects are build.

Projects with unit tests

Use this list to specify projects that contain VSTest unit tests but do not have references to specific test adapters. This may be helpful when custom adapters are configured in a .runsettings file using the <TestAdaptersPaths> element.

To add projects to the list, use file masks — for example **TestProject?.csproj to match MyTestProject2.csproj, MyTestProject3.csproj, and so on.

If a unit test project has a reference to a test adapter, you don't need to add it to this list, but if the specified file mask includes such projects, it won't be a problem.

Adapter ignore list

This list includes test adapters that should not be discovered. The adapters are identified by their executor URI attributes and their containing assemblies.

By default, the list includes adapters for all natively supported frameworks — NUnit, XUnit, and MSTest — because tests from these frameworks will be discovered without adapters.

Last modified: 21 March 2024