首页 > 解决方案 > nunit3-console 运行期间出现 FileNotFoundException

问题描述

我尝试通过 nunit3-console 运行我的测试。通过 Visual Studio 运行效果很好。我执行这个命令:

$ nunit3-console ComplexUI.dll

但得到以下输入:

NUnit.Engine.NUnitEngineException : An exception occurred in the driver while loading tests.
  ----> System.IO.FileNotFoundException : ?? ??????? ????????? ???? ??? ?????? "nunit.framework, Version=3.11.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb" ???? ???? ?? ?? ????????????. ?? ??????? ????? ????????? ????.
--NUnitEngineException
An exception occurred in the driver while loading tests.

符号????可能是由于我的语言环境。

我不知道如何解决它

标签: c#selenium-webdrivernunit-console

解决方案


无论如何,我找到了运行测试的替代方法。dotnet test --no-build我可以通过在放置解决方案文件的目录中运行来做到这一点ComplexUI.sln。它仍然无法与nunit3-console. 可能是当前版本有问题


推荐阅读