ReSharper test runner tries to load the wrong configuration

I have a strange issue with ReSharper's unit test runner.

As long as I build my Release configuration, everything is fine. However, when I clean all the build outputs and set the solution to Debug configuration, when I try to run the tests ReSharper still tries to load assemblies from the bin\Release directory, and there is nothing there so it fails.

I've configured the test runner to automatically rebuild; it builds the Debug configuration, and then tries to load assemblies from the Release configuration, which fails. When the runner tries to load the test assembly, I get a message:

Unit Test Runner failed to run tests

no type: Could not load assembly from [path elided]\bin\Release\Assembly.Specifications.dll: File does not exist

Huh?

How can I make the test runner follow my solution's configuration?

(P.S. I'm using Machine.Specifications as my testing framework).

0
1 comment

Hello Tim,

  Please contact the author of Machine.Specifications plugin https://github.com/machine/machine.specifications and asks them about it. Out-of-box ReSharper does not support Machine.Specifications framework.

Thanks!

0

Please sign in to leave a comment.