Unit Test Menu Options Disabled

Microsoft VS 2015 Professional

Resharper Ultimate 2016.3

"Run All" button on Test Explorer is disabled. Right click context menu on any unit tests listed in the Test Explorer have greyed out run / debug options.

In code window, Right click context menu for a [TestMethod] has the run / debug options greyed out.

The only output in the Tests output pane is:

"The operation was canceled."

(Quotes mine)

Uninstall / Reinstall of Resharper did not solve problem. However, Test Explorer window worked properly (none of the symptoms described above were present) when Resharper was uninstalled.

Any recommendations for resolving this issue?

0
8 comments

Hello!

Thank you for contacting us.

Could you please specify what Test Framework you use? Does the issue happen in other solutions even in a newly created one?

Thanks in advance!

0
Avatar
Permanently deleted user

MSTest. I haven't seen the issue in other solutions. It appears to be limited to just one offender.

After uninstalling Resharper, I did notice this error in the Tests output pane:

UTA031: class XXXXXX does not have valid TestContext property. TestContext must be of type TestContext, must be non-static, public and must not be read-only. For example: public TestContext TestContext.

I've corrected that issue and will reinstall Resharper to see if that was the culprit.

0
Avatar
Permanently deleted user

Correcting the UTA031 issue did not resolve the problem.

I'm also now seeing this message in the Tests output pane:

"The following project have incompatible architecture:"

(Quotes mine)

...followed by a list of DLLs. Could that be interfering with Resharper's functionality?

0
Avatar
Permanently deleted user

I can't run tests after upgrading to v2016.3, I'm using nUnit, all test projects using project.json, fulldotnet 4.6.2.

I had to roll back to 2016.2

0

Hello Andrea

Are you able to reproduce the same issue in a newly created project and attach it here?

Thanks!  

0
Avatar
Permanently deleted user

I'll try, later today

0
Avatar
Permanently deleted user

Same here, I had to roll back to 2016.2.2 in order to resolve the problem.

 

0
Avatar
Permanently deleted user

Sorry,

atm I don't have time to reproduce,

but if it can help, after upgrading to 2016.3.1 tests appear, but sometimes disapper after a build, and reapper with a rebuild or modifying the code of the test...

Additional issue: sometimes I have to run tests twice to make them run

0

Please sign in to leave a comment.