MsTest settings have disappeared

In recent versions of Resharper, all settings have disappeared under Options > Tools > Unit Testing > Test Frameworks > MsTest, it is now blank whereas I used to be able to specify a .testsettings file and other settings. Since we need to use a testsettings file, using Resharper's Unit Test Sessions tool now fails tests that depend on that file.

 

Currently on VS Professional 2019 Version 16.7.5 and ReSharper 2020.2.4 Build 202.0.20200925.65451

13 comments
Comment actions Permalink
Official comment

Hello Joel,

 

thank you for contacting us.

You can find MSTest settings on ReSharper | Options | Tools | Unit Testing | Test Runner page. 

We'll fix an empty page issue in future - https://youtrack.jetbrains.com/issue/RSRP-479970

Thank you.

Comment actions Permalink

Same here,
Visual Studio 2019 16.8.1
Resharper 2020.2.4

MsTest tab is empty, MsTests stopped working, and I'm getting wild errors.

Also the shared fix guide link does not work.

0
Comment actions Permalink

Hello Erdem Yavuz YILDIZ,

I edited the link, thank you for letting us know.

Could you please try installing the latest R# 2020.3 EAP8 and run Visual Studio with the following command line: 'devenv /ReSharper.LogFile C:\log\resharper_log.txt /ReSharper.LogLevel Verbose'? After that reproduce the issue and upload the 'resharper_log.txt' file to JB server via https://uploads.jetbrains.com/ form. Thanks in advance!

0
Comment actions Permalink

Yes tried it just now, it didn't help.
I'm suffering from more problems as well.
Resharper seems to have problems in all .Net Core projects.
Console project or test project didn't matter.

And the Visual Studio itself hangs on NUnit tests.

Is there a way i can completely reset Resharper ? Together with all of it's caches and settings.
Then i'll try resetting visual studio as well.

Can't continue my work without tests, this shouldn't have happened.

0
Comment actions Permalink

Erdem Yavuz YILDIZ,

Thanks for the reply. Is it possible for you to collect a log file using the instructions I gave earlier? Also, if you need to specify a .testsettings file, you can do so on ReSharper | Options | Tools | Unit Testing | Test Runner page or on ReSharper | Options | Tools | Unit Testing | Test Frameworks | MsTest (this interface is available again in 2020.3 EAP8).

As for caches and settings reset - you can remove all caches via clearing %LocapAppData%\JetBrains\Transient folder. ReSharper settings can be reset via Extensions | ReSharper | Manage Options | Reset All Settings. But please don't forget to back up your ReSharper settings if needed.

 

0
Comment actions Permalink

I am also seeing this issue as of this morning with Visual Studio Enterprise 2019 & Pro 2019 Version 16.8.2 with both .Net and .Core Selenium automation solutions.

0
Comment actions Permalink

Hello Mes6073,

Could you please explain what the problem is? Do I understand correctly that you cannot find where to specify the .testsettings file? If so, then please specify it on ReSharper | Options | Tools | Unit Testing | Test Runner page if you have 2020.2.4 installed.

0
Comment actions Permalink

No, I can set the testsettings file. My issue is that I am also seeing the blank MSTEST view, but was also having issues executing tests in a .NET Core solution, but that problem has now been resolved after I removed the existing test session and created a new test session.

 

Edit: Having installed  R# 2020.3 EAP8 , I am now able to see the MsTest view.

0
Comment actions Permalink

Yes, we brought MsTest settings back on MsTest page in 2020.3 EAP8 build.

0
Comment actions Permalink

Maria Pleskunina Andrey Simukov MSTest haven't been working for me since 2020.2 (basically no MSTest tests are detected), so I was hopeful in thinking that the issue would be resolved as soon as the problem with the missing MSTest options page would be fixed as well. Today I tried out 2020.3 but alas, nothing has changed.

Could it be that MSTests are disabled? If so, there no longer seems to be an option to enable them in the settings:

Older version of ReSharper:

 

2020.3:

 

MSTest unit tests not detected since 2020.2 (including 2020.3):

0
Comment actions Permalink

Hello silkfire,

 

Option for enabling/disabling test frameworks support is available in ReSharper internal mode.

Please run ReSharper in internal mode by running VS with the following command: devenv /ReSharper.Internal.

Then open MSTest options page and check if MSTest support is enabled.

Thank you.

0
Comment actions Permalink

Thanks Angelina Elycheva, I enabled the internal mode and was able to see that the setting was turned off. After enabling it, I'm finally able to run MSTest tests with ReSharper Test Explorer. My question though is why you would hide such a critical setting behind an "internal mode", something I wasn't even aware of existed?

0
Comment actions Permalink

Hello silkfire,

 

This setting was moved under internal mode as we assumed that it improves settings UI and makes it no so heavy.

Though we are considering now options how to avoid such an issue you've uncounted. I'll let you know once I have any news on it.

Thank you.

0

Please sign in to leave a comment.