我是FSharp.Charting的维护者。最近,我们的假测试规则开始与下面报告的错误(特别是我调用build.cmd RunTests)打破了关系。假冒伪劣似乎正在为nunit-控制台找到不正确的路径和exe名称,该名称位于packages/NUnit.ConsoleRunner/tools/nunit3-console.exe.。我不确定这是否是版本控制问题,也不确定是否需要更新build.fsx脚本来解释对假冒伪劣和/或NUnit的更改。如有任何指导,将不胜感激。
System.Exception: Start of process c:\GitHub\FSharp.Charting_20180310\tools\Nunit\nunit-console.exe failed. The system cannot find the file specified
at Fake.ProcessHelper.ExecProcessWithLambdas@91-16.Invoke(String message) in C:\code\fake\src\app\FakeLib\ProcessHelper.fs:line 91
at Fake.ProcessHelper.ExecProcessWithLambdas(FSharpFunc2 configProcessStartInfoF, TimeSpan timeOut, Boolean silent, FSharpFunc2 errorF, FSharpFunc2 messageF) in C:\code\fake\src\app\FakeLib\ProcessHelper.fs:line 91
at Fake.NUnitSequential.NUnit(FSharpFunc2 setParams, IEnumerable1 assemblies) in C:\code\fake\src\app\FakeLib\UnitTest\NUnit\Sequential.fs:line 26
at FSI_0005.Build.clo@113-10.Invoke(Unit _arg6) at Fake.TargetHelper.runSingleTarget(TargetTemplate1 target) in C:\code\fake\src\app\FakeLib\TargetHelper.fs:line 626Paket.lock的一些相关内容:
FAKE (4.61.3) - framework: net40, net45, net461
NUnit (3.7.1) - framework: net40, net45, net461
NUnit.ConsoleRunner (3.6.1) - framework: net40, net45, net461
NUnit.Runners (3.6.1) - framework: net40, net45, net461
NUnit.ConsoleRunner (>= 3.6.1) - framework: net40, net45, net461编辑:修正了build.cmd测试命令,并提供了显式的nunit-控制台路径。
发布于 2018-03-20 23:13:23
根据@Charles Mager的其他评论,有两种可能的解决方案:
open Fake.Testing和更新对NUnit3的NUnit调用。此外,一些NUnit参数名称已被更新或取消推荐。有关此方法的详细信息可在这里中找到。我选择了解决方案2,因为它使我们能够跟上当前的NUnit。
https://stackoverflow.com/questions/49393215
复制相似问题