Unit Test Session hangs

Hello,

 

I've had this problem now for a few months where my  Unit Test Session hangs quite often. It's like it starts preparing to run but never actually starts running the tests. Whenever this happens the only thing I can do is close Visual Studio and restart it again. Typically it happens several times every day. 

Closing the test session and starting a new one doesn't help. Same problem happens on both VS 2015 and 2017.

 

12 comments
Comment actions Permalink

Hello Martin!

 

Thank you for the feedback.

Could you please specify the following:

  • which test framework is used in the project in question;
  • what kind of the project it is (Core/.NET Framework, what version etc).

 

Please also try the latest R# 2017.3 EAP build - https://www.jetbrains.com/resharper/eap/ and check if the problem persists.

Thank you.

0
Comment actions Permalink

Hello,

 

Same issue here. It's really blocking as it takes minutes to recover. So most of the time I kill VS and restart my project.

 

I use the following frameworks:

- xunit

- selenium

 

it's a .net project version 4.5.2

 

I hope you will be able to support us quickly.

 

Best Regards,

Nicolas

0
Comment actions Permalink

Same here. MSTest / Selenium, .NET 4.5.2, R# 2018.1.4

0
Comment actions Permalink

Hello Marcel!

 

If you also get hanging VS when trying to run test could you please collect dump as described in the following [article] (https://resharper-support.jetbrains.com/hc/en-us/articles/206546619-What-to-do-if-Visual-Studio-with-ReSharper-hangs-completely-). You can send dump privately via 'Submit a request' form, please specify link to this forum thread in request details.

Thanks in advance.

0
Comment actions Permalink
Hi Angelina,
 
It's not VS that's hanging, just the unit test session. It shows a watch icon and doesn't do anything from there... and hitting the stop icon (the red square) enters another state where a scroll bar gets animated but nothing actually happens.
 
The rest of VS works just fine, I can modify and compile the code, I just can't run tests anymore. (Not with the R# unit test runner anyway, I don't remember if I tried the VS Test Explorer.)
0
Comment actions Permalink

Thank you  for the reply, Marcel.

 

Could you please run Visual Studio with the following command line: 'devenv /ReSharper.LogFile C:\resharper_log.txt /ReSharper.LogLevel Verbose', reproduce the issue and send us a corresponding 'resharper_log.txt' file. You can do it privately via 'Submit a request' form.

Thank you.

0
Comment actions Permalink

Having the same/similar problem.  My issue arises when I attempt to cover certain test groups that have a failed test.  I've submitted a request and included the log file generated as requested above. 

Request #2070753 with attachments

0
Comment actions Permalink

Seems it happens with xunit and [Theory] tests, when type of InlineData parameter is enum.

0
Comment actions Permalink

Hello Fadeevas!

 

Thank you for the feedback.

What behavior do you experience: hanging, some test run issue or something else?

Could you please provide some code sample demonstrating the problem?

Thank you.

0
Comment actions Permalink

Can I write in Russian?

0
Comment actions Permalink

Hello Fadeevas!

 

Yep, you can. I'd only suggest to use "Submit a request" form at the top of the page.

Thank you.

0
Comment actions Permalink

I am having the same issue. I found a way to recover more quickly:

I'm using 'ReSharper Build' (instead of 'VS build'). When I get stuck, I switch to VS build and back to ReSharper Build and I'm unstuck. Takes seconds rather than minutes.

Hope the issue is solved soon, though - seconds wasted is still annoying.

0

Please sign in to leave a comment.