Posted By

noah on 02/08/10


test testing html rspec script ruby text configuration doc design BDD rake user install TDD language maintenance automation Gem rubygems Task DSL gems stories Rakefile cucumber userstories

Versions (?)

Howto set up a Rake task to run Cucumber features and generate reports

 / Published in: Ruby


Note that Rake is slower than just running cucumber

  1. require 'cucumber'
  2. require 'cucumber/rake/task'
  4. desc 'Run Cucumber features and generate an HTML summary, JUnit XML and a plain text log'
  6. do |t|
  8. t.cucumber_opts = [
  9. "--no-color",
  10. "--format progress -o log/features.log",
  11. "--format junit -o log/",
  12. "--format html -o log/features.html",
  13. "--format pretty"]
  14. end

Report this snippet  

You need to login to post a comment.