This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cucumber::Rake::Task.new({:ok => 'db:test:prepare'}, 'Run features that should pass') do |t| | |
t.binary = vendored_cucumber_bin # If nil, the gem's binary is used. | |
t.cucumber_opts = "--format html --out cucumber.html" # Adding this line to generate html output | |
t.fork = true # You may get faster startup if you set this to false | |
t.profile = 'default' | |
end |
You can output to whatever file you would like. We tend to give the team or customers a custom URL that renders that html. On some internal apps, we simply symlink to that file in the public folder when deploying. Either way, you have a pretty friendly way of showing the condition of your cucumber tests. Let me know what you think.