这是我的配置:
构建成功,但测试发现显示错误,发现0个测试。
错误日志:
Exception NUnit.Engine.NUnitEngineException, Exception thrown discovering tests in C:\projects\~
The NUnit 3.0 driver does not support the portable version of NUnit.
Use a platform specific runner.
NUnit Adapter 3.0.10.0: Test discovery complete.
Discover test finished: 0 found
运行NUnit 3适配器(正确名称)版本3.0.10时,您正在使用NUnit 3.0.1来运行测试。如果测试使用3.2.1框架,则存在不兼容的可能性。NUnit运行器始终向后兼容。例如,您可以使用NUnit 3.2运行NUnit 3.0测试,但事实并非如此。
您看到的消息实际上是令人误解的,并且最近已在代码中进行了更改。它假定您在发生序列化异常时正在运行可移植测试。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句