Skip to content

Instantly share code, notes, and snippets.

@flsafe
Created February 28, 2012 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flsafe/1933482 to your computer and use it in GitHub Desktop.
Save flsafe/1933482 to your computer and use it in GitHub Desktop.
# NOTE !!
# Works only if you do NOT have the require cucumber step in your Rakefile
# ci_reporter 1.7 crashes on the command `rake ci:setup:cucumber cucumber`.
# I've followed the instuctions here https://github.com/nicksieger/ci_reporter/issues/4
# and created my own ci:setup:cucumber rake task.
# And this seems to have solved the issue.
namespace :ci do
namespace :setup do
@reports_dir = ENV['CI_REPORTS'] || 'features/reports'
task :cucumber_report_cleanup do
rm_rf @reports_dir
end
task :cucumber => :cucumber_report_cleanup do
extra_opts = "--format junit --out #{@reports_dir}"
ENV["CUCUMBER_OPTS"] = "#{ENV['CUCUMBER_OPTS']} #{extra_opts}"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment