gpt4 book ai didi

c# - NUnit 无法构建测试 - 未发现测试

转载 作者:太空狗 更新时间:2023-10-30 00:23:30 26 4
gpt4 key购买 nike

我正在从事 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,但问题未解决。

请帮我解决这个问题。

谢谢。

最佳答案

由于某种奇怪的原因,我今天遇到了这个问题,因为在此期间我没有做任何更改,而且它以前有效。

通过以下方式修复它:Project-> [YourProjectName].properties -> Build -> Platform target: "Any CPU"-> Untick "Prefer 32-Bit"

关于c# - NUnit 无法构建测试 - 未发现测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37692860/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com