简体   繁体   English

NCrunch“没有测试排队执行”

[英]NCrunch “no tests are queued for execution”

In Visual Studio 2015 Community Edition Update 3 and with NCrunch 2.15.0.9, my MSTest unit tests do compile (I can run them in MSTest), but NCrunch shows them as 在Visual Studio 2015社区版Update 3和NCrunch 2.15.0.9中,我的MSTest单元测试进行编译(我可以在MSTest中运行它们),但NCrunch将它们显示为

No tests are queued for execution. 没有测试排队等待执行。 Monitoring 2 tests, with no tests ignored 监控2个测试,没有忽略测试

The status of those tests is 这些测试的状态是

Running (First time run), Prioritized 正在运行(首次运行),优先

If they are really running, they never complete. 如果它们真的在运行,它们永远不会完成。 Running them in MSTest only takes milliseconds. 在MSTest中运行它们只需要几毫秒。

The C# class library is still a very simple project, almost HelloWorld complexity. C#类库仍然是一个非常简单的项目,几乎是HelloWorld的复杂性。 It does not have any strange dependencies. 它没有任何奇怪的依赖。 It is not signed and it does not have pre- or post-build-steps. 它没有签名,也没有构建前或构建后的步骤。

I have set my NCrunch configuration with the wizard 我已经使用向导设置了NCrunch配置

  • 2/4 cores for NCrunch NCrunch的2/4核心
  • max 1 background processing thread 最多1个后台处理线程
  • optimize for fastest test execution 优化最快的测试执行
  • run my tests one at a time 一次运行一个测试
  • run my tests automatically when changes are detected 检测到更改时自动运行我的测试
  • let my tests run - I will ignore them as I need to 让我的测试运行 - 我将根据需要忽略它们

The tests don't run even if I manually trigger it. 即使我手动触发它,测试也不会运行。

There is no content in the NCrunch Diagnostic Output window. NCrunch诊断输出窗口中没有内容。

Not sure if it's relevant, but I have other plugins installed: 不确定它是否相关,但我安装了其他插件:

  • VisualSVN 5.1.2 VisualSVN 5.1.2
  • Resharper Ultimate 10.0.1 Resharper Ultimate 10.0.1
  • OzCode 2.0.0.1029 OzCode 2.0.0.1029

Screnshot NCrunch测试未运行

Limitations: I can't upgrade NCrunch, since my license expired. 限制:由于我的许可证已过期,因此无法升级NCrunch。

I have tried: 我努力了:

  • Upgrading Resharper Ultimate to 2016.1 将Resharper Ultimate升级至2016.1
  • "prevent signing of the output assembly" “防止签署输出组件”
  • "copy referenced assemblies to workspace" “将引用的程序集复制到工作区
  • set architecture to x86 on both, the DLL and the Tests 在DLL和测试上将架构设置为x86

The latest Visual Studio Update 3 makes .NET 4.6.1 the default .NET Framework for new projects. 最新的Visual Studio Update 3使.NET 4.6.1成为新项目的默认.NET Framework。

Switching both projects (the DLL and the unit tests) back to the slightly older .NET 4.5.2 and then hitting the "Resynchronize, rebuild and rerun" button fixed the problem. 将两个项目(DLL和单元测试)切换回略微较旧的.NET 4.5.2,然后点击“重新同步,重建并重新运行”按钮修复了问题。

This may be fixed in newer versions 2.20 of NCrunch , but my NCrunch license does even not support .NET 4.6. 可以在NCrunch的新版本2.20中修复 ,但我的NCrunch许可证甚至不支持.NET 4.6。

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

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