Posted By

noah on 02/08/10


Tagged

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
 

URL: http://wiki.github.com/aslakhellesoy/cucumber/using-rake

Note that Rake is slower than just running cucumber

  1. require 'cucumber'
  2. require 'cucumber/rake/task'
  3.  
  4. desc 'Run Cucumber features and generate an HTML summary, JUnit XML and a plain text log'
  5.  
  6. Cucumber::Rake::Task.new(:features) do |t|
  7.  
  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.