带有 moles runner 和 xml 输出的 xunit

发布于 2024-11-30 18:58:12 字数 529 浏览 4 评论 0原文

有人让这个工作吗?我在使用 moles runner 和 xunit 控制台以及将 XML 输出写入文件时遇到问题。我正在使用以下内容:

moles.runner /x86 /runner:"d:\tools\xunit\xunit.console.clr4.x86.exe" "d:\project\foo.dll" /args:"xml d:\project\foo.xml"

鼹鼠似乎可以调用跑步者,但我得到:

error: missing filename for /xml:d:\project\foo.xml

然而,如果我将 /d 标志放在鼹鼠跑步者诊断上,它会显示正确的跑步者:

d:\tools\xunit\xunit.console.clr4.x86.exe /xml d:\project\foo.xml

如果我运行它,测试就会运行(并失败,因为它们是摩尔测试),但 xml 文件已创建。

有什么想法吗?

Has anyone got this working? I'm having trouble using the moles runner with the xunit console and getting the XML output to a file. I'm using the following:

moles.runner /x86 /runner:"d:\tools\xunit\xunit.console.clr4.x86.exe" "d:\project\foo.dll" /args:"xml d:\project\foo.xml"

moles seems to invoke the runner OK, but I get:

error: missing filename for /xml:d:\project\foo.xml

Yet, if I put the /d flag on for the moles runner diagnostics it shows the correct runner:

d:\tools\xunit\xunit.console.clr4.x86.exe /xml d:\project\foo.xml

And if I run that, the tests run (and fail because they are mole tests), but the xml file is created.

Any ideas?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文