Mono附带的nunit-console已过时,请使用Nunit Nuget软件包或其他获取NUnit的形式

问题描述 投票:4回答:1

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

<< img src =“ https://image.soinside.com/eyJ1cmwiOiAiaHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS9DWHhVcS5wbmcifQ==” alt =“在此处输入图像描述”>

我在MAC OS X上有一个测试dll,需要通过ssh连接使用nunit-console运行。但是,它给出了不赞成Mono附带的Nunit-console的错误。

也尝试过Nunit3-console.exe,但它给出了错误(仅在ssh上运行时]

CODE:

"/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
macos ssh mono nunit-console
1个回答
0
投票

在您运行单元控制台之前,请尝试执行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"
© www.soinside.com 2019 - 2024. All rights reserved.