Skip to content

Commit

Permalink
Fixed cucumber setup task
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Semyonov committed Oct 12, 2010
1 parent a67d103 commit 4a407ae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/ci/reporter/rake/cucumber.rb
Expand Up @@ -4,13 +4,14 @@

namespace :ci do
namespace :setup do
@reports_dir = ENV["CI_REPORTS"] || "features/reports"

task :cucumber_report_cleanup do
rm_rf ENV["CI_REPORTS"] || "features/reports"
rm_rf @reports_dir
end

task :cucumber => :cucumber_report_cleanup do
spec_opts = ["--require", "#{File.dirname(__FILE__)}/cucumber_loader.rb",
"--format", "CI::Reporter::Cucumber"].join(" ")
spec_opts = ['--format', 'junit', '--out', @reports_dir].join(" ")
ENV["CUCUMBER_OPTS"] = "#{ENV['CUCUMBER_OPTS']} #{spec_opts}"
end
end
Expand Down

0 comments on commit 4a407ae

Please sign in to comment.