【发布时间】:2018-01-05 01:36:05
【问题描述】:
我正在开发selenium 网络驱动程序项目。我能够在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,但问题未解决。
请帮我解决这个问题。
谢谢。
【问题讨论】:
-
您能给我们看看您的配置管理器窗口吗?菜单 -> 构建 -> 配置管理器...
-
我建议,将您的程序集构建为任何 CPU,对我来说,您的测试主机似乎配置为 X86。
-
我的配置管理器平台已设置为任何 CPU。抱歉,我无法添加屏幕截图。
-
项目 --> CustomerTest,配置 -> 调试,平台 -> 任何 CPU。
-
任何人都可以告诉我为什么这个“尝试加载带有不受支持的测试框架的程序集”消息给出?这和 Nunit 版本有关吗?