是否可以抑制 NAnt 的执行任务“[exec]”?控制台输出前缀

发布于 2024-09-24 06:53:29 字数 317 浏览 1 评论 0原文

我正在尝试将 Robot Framework(验收测试框架)与 TeamCity 集成。为此,它需要将消息发送到控制台输出,然后 TeamCity 将读取并返回实时测试进度/结果。我通过调用命令行来使用简单的 exec 任务运行测试来完成此操作。一切似乎都正常,除了我只是在运行结束时而不是在运行中得到结果之外。

在与 NAnt 进行了一些斗争之后,我转而使用 MSBuild,一切都第一次正常工作。

我现在已经有了我需要的东西,但为了完整起见,我想找出为什么我无法让它与 NAnt 一起工作。据我所知,问题是 NAnt 在所有控制台输出前加上 [exec] 前缀。有可能抑制这种情况吗?

I'm trying to integrate Robot Framework (an acceptance testing framework) with TeamCity. In order to do this it needs to send messages to the console output which TeamCity will then read and return realtime test progress/results. I'm doing this by calling the command line to run the tests with a simple exec task. Everything seemed to be working other than I was only getting the results at the end of the run and not on the fly.

After a bit of struggling with NAnt I swapped to using MSBuild and everything worked first time.

I have what I need now, but for completeness I'd like to find out why I couldn't get it working with NAnt. As far as I can tell the issue is that NAnt is prefixing all console output with [exec]. Is it possible to suppress this?

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

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

发布评论

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

评论(1

久而酒知 2024-10-01 06:53:29

我不认为控制台输出是可配置的。

NAnt 是开源的:您可以分叉自己的副本和/或提交功能补丁。

I don't think the console output is configurable.

NAnt is open source: you could fork your own copy and/or submit a feature patch.

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