让水豚和黄瓜记录更多信息
我的 cucumber/capybara 遇到问题setup 并想知道...
我如何从黄瓜和水豚中获取更多信息以了解发生了什么?
我尝试运行
bundle exec cucumber features/myfeature.feature -v -b -x
但这只是显示加载了哪些 rb 文件以及正在加载哪些功能。我想知道它到底在运行什么。它向我展示的是:
F_______________F
这完全没有帮助。
I'm having problems with my cucumber/capybara setup and was wondering...
How can I get more information out of cucumber and capybara to see what's going on?
I've tried running
bundle exec cucumber features/myfeature.feature -v -b -x
But that just shows which rb files are loaded and which feature is being loaded. I want to know what on earth it is running. All it shows me is:
F_______________F
Which is completely unhelpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您想查看什么样的信息?
您可以尝试添加
--format=pretty
选项 - 这将打印出正在处理的每个步骤,以及与其匹配的步骤定义的文件位置,以便您可以查看每个步骤的状态步骤(通过、失败、跳过、待处理等)What kind of information are you looking to see?
You can try adding the
--format=pretty
option - this will print out each step as it's being processed, with the file location of the step definition that matches it, so you can see the status of each step (passed, failed, skipped, pending, etc.)为了调试步骤,我错过了 Cucumber 中的一些真正的日志记录支持,但目前从步骤记录日志的方法似乎是“宣布”消息。公告通过@announce 标签打开。尝试使用 @announce 标记您的功能/场景,这是迄今为止我发现的最佳选择。
I miss some real logging support in Cucumber, in order to debug steps, but it seems the current way to log from steps is to "announce" messages. Announcements are turned on with the @announce tag. Try tagging your feature/scenario with @announce, that's the best option I've discovered so far.