简体   繁体   中英

ReSharper silently refuses to run NUnit tests

I have the following:

namespace repro
{
    [TestFixture]
    public class repro
    {
        [Test]
        public void nunit_works()
        {
            Assert.That(true, Is.True);
        }
    }
}

When I attempt to run the test via ReSharper 10, Resharper quietly refuses to run the test (displayed as "inconclusive"):

在此处输入图片说明

This holds in VS2012 and VS2015. I've tried starting from a fresh checkout of the project and all of the advice here (except for repaving my system). In particular, neither clearing Resharper's cache nor forcing the tests to be run in a 32bit process has any effect on the outcome.

EDIT: Setting a breakpoint at the start of the test reproduces the "debugger fires up then immediately exits" behaviour described here .

EDIT 2: Uninstalling, then reinstalling ReSharper doesn't fix it either.

Any ideas?

Uninstalling R# 10 and reverting to R# 9.3 seems to have done the trick.

(Really the solution is to avoid working on projects with harrowing and obscure pre-build dependencies and use NCrunch, but that's not what I'm getting paid to do.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM