【发布时间】:2017-02-24 22:42:12
【问题描述】:
如何将日志打印/断言/嵌入到生成的 report.html 文件中? 例如
Then(/^I do some crazy stuff$/) do
puts "this scenario does crazy stuff"
end
这种情况很疯狂应该出现在 report.html 中。 如果我使用 puts 它会在我不需要的终端上打印输出。
【问题讨论】:
如何将日志打印/断言/嵌入到生成的 report.html 文件中? 例如
Then(/^I do some crazy stuff$/) do
puts "this scenario does crazy stuff"
end
这种情况很疯狂应该出现在 report.html 中。 如果我使用 puts 它会在我不需要的终端上打印输出。
【问题讨论】:
不确定这是否会有所帮助,但我发现了一个类似的问题和答案。 cucumber/ruby: possible to output the "puts" to a --format html file?
【讨论】: