是否可以抑制 NAnt 的执行任务“[exec]”?控制台输出前缀
我正在尝试将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不认为控制台输出是可配置的。
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.