gpt4 book ai didi

macos - 不推荐使用 Mono 附带的 nunit-console,请使用 Nunit Nuget 包或其他一些获取 NUnit 的形式

转载 作者:行者123 更新时间:2023-12-02 13:46:58 26 4
gpt4 key购买 nike

如何通过 ssh 在 MAC OSX (Mono 5.18.1) 上的控制台上运行 NUnit 测试

enter image description here

我在 MAC OS X 上有一个测试 dll,它需要通过 ssh 连接使用 nunit-console 运行。然而,它给出了错误,即 Mono 附带的 Nunit 控制台已被弃用。

还尝试了 Nunit3-console.exe,但它给出了错误(仅当通过 ssh 运行时)

代码:

"/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono" "/Users/TestData/NUnit.Console-3.9.0/nunit3-console.exe" "/Users/TestData/UITest.QPTTests/bin/Debug/UITest.QPTTests.dll"

错误:
System.ComponentModel.Win32Exception : ApplicationName='mono', CommandLine='--runtime=v4.0.30319 "/Users/TestData/NUnit.Console-3.9.0/nunit-agent.exe" b10715dd-58ed-4f6a-9220-6f9a52a2cXXX tcp://137.0.0.1:5125/TestAgency --pid=2129 --work=/Users', CurrentDirectory='', Native error= Cannot find the specified file

最佳答案

尝试执行 source /etc/profile运行单元控制台之前的命令
在你的情况下:

source /etc/profile; "/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono" "/Users/TestData/NUnit.Console-3.9.0/nunit3-console.exe" "/Users/TestData/UITest.QPTTests/bin/Debug/UITest.QPTTests.dll"

关于macos - 不推荐使用 Mono 附带的 nunit-console,请使用 Nunit Nuget 包或其他一些获取 NUnit 的形式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55690868/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com