Multiple Nunit test projects with individual runsettings files


I have a solution with multiple nunit test projects. Every test project has its own runsettings file. However, the runsettings file does not seem to be used when executing the tests. In settings, I found an input field to specify a custom runsettings file but this seems to be a solution wide setting.

Is there a way to have a runsettings file for every test project?

1 comment


Starting with version 2022.3 Rider supports per-project .runsettings files using a reference in csproj:

    <RunSettingsFilePath> $(MSBuildProjectDirectory)\yourfilename.runsettings</RunSettingsFilePath>

You can provide a valid path to the runsettings file you want to use in this property for each test project in your solution.


Please sign in to leave a comment.