我使用的是 Visual Studio 2013,安装了 FsUnit 2.2.0,它需要 NUnit 3.2.1 和 FSharpCore 3.1。我创建了一个单独的测试项目,并在其中放置了一个测试装置和测试。我的平台是 x64 Win 10。配置适用于“AnyCPU”和“调试”。我尝试过 x86 和 x64 的测试设置。当尝试构建和创建测试时,我得到:
------ Discover test started ------
NUnit Adapter 3.2.0.0: Test discovery starting
Exception NUnit.Engine.NUnitEngineException, Exception thrown discovering tests in C:\Users\Dad\Documents\Visual Studio 2013\Projects\...
Cannot run tests in process - a 32 bit process is required.
Exception NUnit.Engine.NUnitEngineException, Exception thrown discovering tests in C:\Users\Dad\Documents\Visual Studio 2013\Projects\...
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:00.1230077) ==========
如果我将测试项目和目标项目的配置更改为“x86”(而不是 AnyCPU),那么基础项目的错误就会消失,但测试项目也会发生同样的情况。
尚未发现任何测试,请帮忙......非常感谢!
您需要从解决方案中删除 nunit,然后使用“NUnit3TestAdapter”再次安装它,版本 3.0.10 可以工作。
卸载添加/删除程序和解决方案中的任何 NUnit 软件。现在使用 Nuget 包管理器(工具 > NuGet 包管理器 > 管理解决方案的 NuGet 包...)删除解决方案中的任何 NUnit 并安装旧版本(例如 3.0.1)。找到“NUnit3TestAdapter”并安装版本 3.0.10。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)