NUnit3TestExecutor使用当前发现模式发现了1个NUnit测试用例中的0个,显式运行 [英] NUnit3TestExecutor discovered 0 of 1 NUnit test cases using Current Discovery mode, Explicit run

查看:63
本文介绍了NUnit3TestExecutor使用当前发现模式发现了1个NUnit测试用例中的0个,显式运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从测试资源管理器运行SpecFlow+NUnit测试时,所有测试始终运行,即使我只选择了某些测试。

我还看到此消息,我怀疑它与此相关:

NUnit3TestExecutor discovered 0 of 1 NUnit test cases using Current Discovery mode, Explicit run

此外,测试运行后,即使测试成功,它们仍标记为";Not Run&Quot;。

如何解决此问题?

推荐答案

我按照https://github.com/nunit/nunit-vs-adapter/issues/125中的建议将解决方案中的所有Nuget包升级到最新版本,从而修复了该问题。我不知道为什么这就解决了它,但它确实解决了。

升级Nuget包后,我收到错误:

System.IO.FileLoadException : Could not load file or assembly 'nunit.framework, Version=3.13.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

通过以下https://github.com/SpecFlowOSS/SpecFlow/issues/2387处的建议修复了此问题:

这篇关于NUnit3TestExecutor使用当前发现模式发现了1个NUnit测试用例中的0个,显式运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆