GUI 也在运行时运行 nunit-console.exe 失败

发布于 2024-09-09 02:38:22 字数 438 浏览 8 评论 0 原文

我尝试从脚本运行 nunit-console.exe,但收到“无法定位固定装置”错误,但仅当我也运行 NUnit GUI 时。一旦我关闭 NUnit GUI,脚本就可以正常运行测试。

这是脚本执行的 nunit 命令;

"C:\Dev\Test1\Build\NUnit\nunit-console.exe" "C:\Dev\Test1\Tests\bin\Release\Test1.Tests.dll" /framework=v4.0.30319

它甚至可能是正在运行的 NUnit GUI 的不同版本,但它仍然会产生干扰(版本 2.5.1 与 2.5.5)。它认为它与 nunit-agent.exe 有关,因为它在 GUI 未运行时运行(由 nunit-console.exe 进程生成),但当 nunit colsole 在 GUI 运行时运行时,它不会运行也在运行。

I'm trying to run nunit-console.exe from a script and I get an 'Unable to locate fixture' error, but only when I have NUnit GUI also running. Once I close the NUnit GUI the script runs the tests just fine.

Here is nunit command being executed by the script;

"C:\Dev\Test1\Build\NUnit\nunit-console.exe" "C:\Dev\Test1\Tests\bin\Release\Test1.Tests.dll" /framework=v4.0.30319

It can even be a different version of the NUnit GUI that is running and it still interferes (ver 2.5.1 vs 2.5.5). It think it has something to do with the nunit-agent.exe as it runs (spawned by the nunit-console.exe process) when the GUI is not running, but it doesn't run when the nunit colsole runs while the GUI is also running.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

指尖凝香 2024-09-16 02:38:22

我也发现了同样的问题,这是出乎意料的。

我在网上找到的唯一信息是有人提出的问题 在论坛中发布,Charlie Poole(NUnit 作者之一)对此做出了回应。

基本上,该错误是在 2.5.5 中发现的,并在下一个版本中修复,可从 NUnit.org 下载 < /a> 网站页面。

对我来说,这意味着升级到 NUnit 2.6.1,问题就消失了。

我希望这有助于清除你的风滚草! :-)

I found this same problem too, which appeared unexpectedly.

The only information that I had found online about it, was a question that someone had posted in a forum and that Charlie Poole (one of the NUnit authors) had responded to it.

Basically, the bug was found in 2.5.5 and was fixed in the next release, available from the NUnit.org download page of the website.

For me, this meant upgrading to NUnit 2.6.1 and the problem disappeared.

I hope this helps to clear your tumbleweed away! :-)

难理解 2024-09-16 02:38:22

尝试使用 nunit-console-x86.exe 而不是 nunit-console.exe

另外,请尝试使用 /framework=4.0 而不是 /framework=v4.0.30319

最后,当我尝试使用与登录用户不同的用户帐户运行 nunit-console-x86.exe 时,我遇到了类似的问题,因此我通过使用相同的用户帐户运行 exe 来解决此问题用户帐户。

也许这个问题也会有所帮助: nunit-console 无法 loacte 固定装置

另请参阅这个错误:https://bugs.launchpad.net/nunitv2/+bug/582051

祝你好运! :)

Try using nunit-console-x86.exe instead of nunit-console.exe.

Also, try using /framework=4.0 instead of /framework=v4.0.30319.

Lastly, I've had similar issues when I try to run nunit-console-x86.exe using a different user account than the logged in user, and so I resolved this by running the exe using the same user account.

Maybe this question will also help: nunit-console can not loacte fixture

Also see this bug: https://bugs.launchpad.net/nunitv2/+bug/582051

Good luck! :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文