【问题标题】:FileNotFoundException during nunit3-console runningnunit3-console 运行期间出现 FileNotFoundException
【发布时间】:2019-08-13 11:59:12
【问题描述】:

我尝试通过 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.

符号 ????可能与我的语言环境有关。

不知道怎么解决

【问题讨论】:

  • 您是否将ComplexUI.dll 移出bin 目录?
  • 您是否有从项目中的外部文件读取的数据驱动测试?以这种方式触发您的测试将在 DLL 中运行每个测试...这是您所期望的吗?
  • 是的,我已尝试将 .dll 从 bin 目录中移出

标签: c# selenium-webdriver nunit-console


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2019-10-19
    • 1970-01-01
    • 2017-06-05
    • 2017-10-10
    • 2017-03-26
    • 2023-03-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多