Multiple Nunit test projects with individual runsettings files

Hello, 

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?

0
1 comment

Hello,

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

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

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

0

Please sign in to leave a comment.