appharbor 上失败测试的堆栈跟踪
在 Appharbor 上运行 SpecFlow 测试时如何获取堆栈跟踪和调试日志记录?
测试运行,但我得到的唯一输出是:
Status: Failed
Duration: 00:00:00.0312002
Message
TestFixtureSetUp failed in AdvertisementFeature
当我在本地运行它时,我得到完整的堆栈跟踪和日志记录。我不在 appharbor 进行任何配置文件转换。
How do you get a stacktrace and debug logging when running SpecFlow tests on Appharbor?
The tests run but the only output I get is:
Status: Failed
Duration: 00:00:00.0312002
Message
TestFixtureSetUp failed in AdvertisementFeature
When I run it locally I get full stack trace and logging. I don't do any config file conversion at appharbor.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要查看 SpecFlow 测试的完整堆栈跟踪,您必须查看父堆栈跟踪,因为 SpecFlow 在那里记录堆栈跟踪。
目前,查看父测试的最简单方法是将 url 更改为父 url,方法是删除最后一个数字,如下例所示:
失败的测试 url: https://appharbor.com/applications/{applicationName}/builds/{buildId}/tests/1.1.2
父测试网址:https://appharbor.com/applications/{applicationName}/builds/{buildId}/tests/1.1
To see the full stacktrace for a SpecFlow test you will have to view the parent stacktrace, as SpecFlow log the stacktrace there.
As for now the easiest way to view a parent test is to change the url to the parent url, by removing the last number, like in this example:
Failed test url: https://appharbor.com/applications/{applicationName}/builds/{buildId}/tests/1.1.2
Parent test url: https://appharbor.com/applications/{applicationName}/builds/{buildId}/tests/1.1