c# - 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.
符号????可能是由于我的语言环境。
我不知道如何解决它
解决方案
无论如何,我找到了运行测试的替代方法。dotnet test --no-build
我可以通过在放置解决方案文件的目录中运行来做到这一点ComplexUI.sln
。它仍然无法与nunit3-console
. 可能是当前版本有问题
推荐阅读
- css - SVG fill-rule being ignored
- javascript - 使用jquery动态调用变量?
- cmake - Visual Studio 2017 - 如何设置安装目录
- node.js - 即使是一个简单的空管道也无法显示我的阶段
- javascript - 如何在ovh上对一个js页面收费?
- javascript - 收到 TS 错误,“类型 'TPage' 上不存在属性 'children'”
- jenkins - 如何检查 Jenkins 声明性管道中的密码参数是否为空?
- vb.net - system.net.mail.attachments 添加错误“抱歉出了点问题...”
- node.js - 尝试在 Pug 中迭代 JSON 但不断收到长度错误
- c# - 在 Jetbrains Rider IDE 中更改 .NET Framework