当前位置: 首页 > 面试题库 >

NUnit无法建立测试-未找到测试

谭泳
2023-03-14
问题内容

我正在从事seleniumWeb驱动程序项目。我能够构建测试Test Explorer并执行。

重建解决方案时,我立即遇到以下错误。

Unit Adapter 3.2.0.0: Test discovery starting
NUnit VS Adapter 2.0.0.0 discovering tests is started
NUnit Adapter 3.2.0.0: Test discovery starting
NUnit VS Adapter 2.0.0.0 discovering tests is started
Attempt to load assembly with unsupported test framework in  C:\..\CustomerTest.exe
NUnit VS Adapter 2.0.0.0 discovering test is finished
Attempt to load assembly with unsupported test framework in  C:\..\LoginTest.exe
NUnit VS Adapter 2.0.0.0 discovering test is finished
Exception NUnit.Engine.NUnitEngineException, Exception thrown discovering tests in C:\..\CustomerTest.exe
Cannot run tests in process - a 32 bit process is required.
NUnit Adapter 3.2.0.0: Test discovery complete
Exception NUnit.Engine.NUnitEngineException, Exception thrown discovering tests in C:\..\LoginTest.exe
Cannot run tests in process - a 32 bit process is required.
NUnit Adapter 3.2.0.0: Test discovery complete
========== Discover test finished: 0 found (0:00:02.5558095) ==========

我已将默认处理器体系结构更改为X64,但问题未解决。

请帮助我解决此问题。

谢谢。


问题答案:

似乎是这样的问题:Visual StudioFsUnit测试设置-异常NUnit.Engine.NUnitEngineException因此,安装适配器版本3.0.10应该可以解决您的问题。至少对我有用。

您可以在github上关注此问题。



 类似资料:
  • 我在这里给我的课做了注解 此外,还对我的测试方法进行了这样的注解 最后,配置我的build.gradle defaultConfig和依赖项,如下所示

  • 我已经看了所有其他对此的反应,但它们似乎不适用于我。 https://kotlinlang.org/api/latest/kotlin.test/kotlin.test/ 我正在尝试从暂存文件或.kt文件访问它,并且它不在下拉列表中以选择它。 项目正在使用JDK 15。

  • 在我的asp.net核心项目(与2017年相比)中,我想运行我的测试方法,但在测试资源管理器中单击“运行所有”,我在测试资源管理器控制台中得到“最后一次测试运行不运行(总运行时间“布拉布拉”)”响应。我已经下载了我的NunitNuGet包。我认为在我的启动类或其他地方asp.net核心中测试有一些缺失的测试配置,或者一些缺失的NuGet包:/Thx提前给每个人。 这是我的测试课: 下面是我的“Gu

  • 我想运行一个junit4测试套件,并在构建中使用过滤器指定它。gradle,但gradle(版本2.10)没有找到测试。有没有办法在gradle中运行指定的junit测试套件? 我的测试套件类 build.gradle

  • 我正在使用seliniumwebdriver、Nunit框架和IE浏览器。我有下面的代码。Tt未执行第二种方法(添加危险)。我正在粘贴代码和堆栈跟踪。谁能告诉我哪里出了问题。提前谢谢。 堆栈跟踪 美国东部时间名称:添加危害测试全名: Nunit2。SeleniumTest.Add Hazard测试源:C:\用户\Anuradh Vanguri\Documents\Visual Studio 201