Permalink
Browse files

Set the prefix to be features, rather than cucumber.

This makes it push the reports into a consistent location if CI_REPORTS is not set.
  • Loading branch information...
1 parent 8498d2c commit b5e57b6df6db9adf784968db466ca9f46f54cd69 @mathie mathie committed May 4, 2009
Showing with 8 additions and 8 deletions.
  1. +7 −7 acceptance/verification_spec.rb
  2. +1 −1 lib/ci/reporter/cucumber.rb
View
14 acceptance/verification_spec.rb
@@ -65,15 +65,15 @@
describe "Cucumber acceptance" do
it "should generate three XML files" do
- File.exist?(File.join(REPORTS_DIR, 'CUCUMBER-Feature-Example-feature-Conscientious-developer.xml')).should == true
- File.exist?(File.join(REPORTS_DIR, 'CUCUMBER-Feature-Example-feature-Lazy-hacker.xml')).should == true
- File.exist?(File.join(REPORTS_DIR, 'CUCUMBER-Feature-Example-feature-Bad-coder.xml')).should == true
+ File.exist?(File.join(REPORTS_DIR, 'FEATURES-Feature-Example-feature-Conscientious-developer.xml')).should == true
+ File.exist?(File.join(REPORTS_DIR, 'FEATURES-Feature-Example-feature-Lazy-hacker.xml')).should == true
+ File.exist?(File.join(REPORTS_DIR, 'FEATURES-Feature-Example-feature-Bad-coder.xml')).should == true
- Dir["#{REPORTS_DIR}/CUCUMBER-*.xml"].length.should == 3
+ Dir["#{REPORTS_DIR}/FEATURES-*.xml"].length.should == 3
end
it "should have three tests and no failures for the conscientious developer" do
- doc = File.open(File.join(REPORTS_DIR, 'CUCUMBER-Feature-Example-feature-Conscientious-developer.xml')) do |f|
+ doc = File.open(File.join(REPORTS_DIR, 'FEATURES-Feature-Example-feature-Conscientious-developer.xml')) do |f|
REXML::Document.new(f)
end
doc.root.attributes["errors"].should == "0"
@@ -83,7 +83,7 @@
end
it "should have three tests and one failure for the lazy hacker" do
- doc = File.open(File.join(REPORTS_DIR, 'CUCUMBER-Feature-Example-feature-Lazy-hacker.xml')) do |f|
+ doc = File.open(File.join(REPORTS_DIR, 'FEATURES-Feature-Example-feature-Lazy-hacker.xml')) do |f|
REXML::Document.new(f)
end
doc.root.attributes["errors"].should == "0"
@@ -97,7 +97,7 @@
end
it "should have three tests and one failure for the bad coder" do
- doc = File.open(File.join(REPORTS_DIR, 'CUCUMBER-Feature-Example-feature-Bad-coder.xml')) do |f|
+ doc = File.open(File.join(REPORTS_DIR, 'FEATURES-Feature-Example-feature-Bad-coder.xml')) do |f|
REXML::Document.new(f)
end
doc.root.attributes["errors"].should == "0"
View
2 lib/ci/reporter/cucumber.rb
@@ -51,7 +51,7 @@ class Cucumber < ::Cucumber::Ast::Visitor
attr_accessor :test_suite, :report_manager, :feature_name
def initialize(step_mother, io, options)
- self.report_manager = ReportManager.new("cucumber")
+ self.report_manager = ReportManager.new("features")
super(step_mother)
end

0 comments on commit b5e57b6

Please sign in to comment.