6

How can I set .runsettings for MsTest in JetBrains Rider?

I tried File | Settings | Build, Execution, Deployment | Unit Testing | MSTest and choose the .runsettings file in Test Settings but this has no effect.

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Christian
  • 1,022
  • 13
  • 28
  • 2
    What is your Rider version? Did you try to open your test project in Visual Studio? Please check if your .DotSettings file contains the following: `True`. If it does, change it to false. Or you can do it via VisualStudio: go to "ReSharper | Options | Tools | Unit Testing | Test Frameworks | MsTest -> Test Settings" and switch it to "Use specific test setting file" instead of "Use .runconfig/.testsettings selected in VS UI", then save settings. – sbyzova Jun 28 '19 at 14:48
  • I use Rider 2019.1.2. And yes after I change the property to false in "C:\Users\%USER_HOME%\.Rider2019.1\config\resharper-host\GlobalSettingsStorage.DotSettings" it works fine. – Christian Jul 01 '19 at 11:30

1 Answers1

7

The location may have changed since the original question, but I've found it here:

JetBrains Rider > Preferences... > Build, Execution, Deployment > Unit Testing > MSTest

You may have a checkbox Enable MSTest support which you can check (although seems to be removed in latest Rider version) and there's also a path to your test settings file in the Test Settings box.

enter image description here

David Spence
  • 7,999
  • 3
  • 39
  • 63