MSTest integration in ReSharper is broken

Answered

Hello everybody,

I'm using ReSharper 2020.2.1 in VisualStudio 2019 (16.7.1) and have some trouble executing UnitTests with ReSharper:

  • The tests executed with TestExplorer are ran in a "TestResults\..." folder inside the current repository.
    When I run my tests with ReSharper they are executed in "%AppData%\Local\Temp\TestResults\..."
    This does not work for some of our older tests and I cannot just simply refactor them on older already released branches.
  • I would like to check/change the settings for MSTest in ReSharper but for me this page (ReSharper options -> Tools -> Unit Testing -> Test Frameworks -> MsTest) is blank.
    I double checked this with other computers where the content of the page is properly shown.

What I tried to fix this:

  • Update ReSharper (problem occurred originally in an older version)
  • Uninstall/Reinstall ReSharper 2020.2.1

What else can I do to fix my MSTest integration without reinstalling the whole computer?

9 comments
Comment actions Permalink
Official comment

Hello,

Thank you for the question! The behavior is fixed in the upcoming 2020.2.2 version.

Comment actions Permalink

Andrey Simukov MSTest support was supposed to be fixed in 2020.2.1, we had to roll back to version 2020.1.4 and it works fine including code coverage working as before, but 2020.2.x is broken big time...

0
Comment actions Permalink

Alexander Kachalkov Could you check the behavior with ReSharper 2020.2.2 ? This particular issue is fixed in the version.

0
Comment actions Permalink

It is still appears empty :-/

0
Comment actions Permalink

Same here, MSTest settings page is still empty.

Also, it seams like ReSharper test execution is using a *.testsettings file that I used about 2 years ago. This is why cannot execute many other tests right now.

Maybe a conflict with some older settings files or an older version?
I uninstalled VS 2015 & 2017 including corresponding ReSharper recently.

0
Comment actions Permalink

The .testsettings file location option was moved to the ReSharper | Options | Tools | Unit Testing | Test Runner page. The UI issue with MSTest empty page is going to be fixed in 2020.3

Alexander Kachalkov this behavior was changed in 2020.2.2 in order to match with 2020.1.4 and previous versions

"The tests executed with TestExplorer are ran in a "TestResults\..." folder inside the current repository."

0
Comment actions Permalink

Hello,

the problem with the execution folder and the *.testsettings seams to be fixed in 2020.2.2!

Regadring the MSTest page, I'll be waiting for 2020.3

0
Comment actions Permalink

HI Andrey Simukov, I'm currently using R# 2020.2.4 and the mstest config blade is still empty, any news whether this is expected to be fixed ?

Thanks in advance!

0
Comment actions Permalink

Hello Lisber Pontes,

 

Please follow this issue to get the latest updates - https://youtrack.jetbrains.com/issue/RSRP-479970.

Thank you.

0

Please sign in to leave a comment.