简体   繁体   English

ReSharper默默地拒绝运行NUnit测试

[英]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"): 当我尝试通过ReSharper 10运行测试时,Resharper悄悄地拒绝运行测试(显示为“不确定”):

在此处输入图片说明

This holds in VS2012 and VS2015. 这适用于VS2012和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. 特别是,清除Resharper的缓存或强制在32位进程中运行测试都不会对结果产生任何影响。

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. 编辑2:卸载,然后重新安装ReSharper也不能修复它。

Any ideas? 有任何想法吗?

Uninstalling R# 10 and reverting to R# 9.3 seems to have done the trick. 卸载R#10并恢复为R#9.3似乎可以解决问题。

(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.) (真正的解决方案是避免在令人痛苦的项目中工作,并且避免混淆预构建依赖项并使用NCrunch,但这不是我得到的报酬。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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