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个,显式运行
基础教程推荐
- 获取C#保存对话框的文件路径 2022-01-01
- 重新排序 WPF TabControl 中的选项卡 2022-01-01
- Mono https webrequest 失败并显示“身份验证或解密失败" 2022-01-01
- 在 VB6 或经典 ASP 中使用 .NET 2022-01-01
- 更新 Visual Studio 中的 DataSet 结构以匹配新的 SQL 数据库结构 2022-01-01
- SonarQube C# 分析失败“不是指针的有效行偏移" 2022-01-01
- 将数据集转换为列表 2022-01-01
- 如果条件可以为空 2022-01-01
- C# 9 新特性——record的相关总结 2023-04-03
- 从 C# 控制相机设备 2022-01-01
