NUnit3TestExecutor discovered 0 of 1 NUnit test cases using Current Discovery mode, Explicit run(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个,显式运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:NUnit3TestExecutor使用当前发现模式发现了1个NUnit测试用例中的0个,显式运行
基础教程推荐
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
