Object
# File lib/ci/reporter/cucumber.rb, line 64 def after_background(*args) end
# File lib/ci/reporter/cucumber.rb, line 100 def after_examples(*args) end
# File lib/ci/reporter/cucumber.rb, line 54 def after_feature(feature) test_suite.name = @name test_suite.finish report_manager.write_report(@test_suite) @test_suite = nil end
# File lib/ci/reporter/cucumber.rb, line 80 def after_steps(steps) @test_case.finish case steps.status when :pending, :undefined @test_case.name = "#{@test_case.name} (PENDING)" when :skipped @test_case.name = "#{@test_case.name} (SKIPPED)" when :failed @test_case.failures << CucumberFailure.new(steps) end test_suite.testcases << @test_case @test_case = nil end
# File lib/ci/reporter/cucumber.rb, line 113 def after_table_row(table_row) if @header_row @header_row = false return end @test_case.finish @test_case.failures << CucumberFailure.new(table_row) if table_row.failed? test_suite.testcases << @test_case @test_case = nil end
# File lib/ci/reporter/cucumber.rb, line 61 def before_background(*args) end
# File lib/ci/reporter/cucumber.rb, line 96 def before_examples(*args) @header_row = true end
# File lib/ci/reporter/cucumber.rb, line 49 def before_feature(feature) self.test_suite = TestSuite.new(@name) test_suite.start end
# File lib/ci/reporter/cucumber.rb, line 75 def before_steps(steps) @test_case = TestCase.new(@scenario) @test_case.start end
# File lib/ci/reporter/cucumber.rb, line 103 def before_table_row(table_row) row = table_row # shorthand for table_row # check multiple versions of the row and try to find the best fit outline = (row.respond_to? :name) ? row.name : (row.respond_to? :scenario_outline) ? row.scenario_outline : row.to_s @test_case = TestCase.new("#@scenario (outline: #{outline})") @test_case.start end
Generated with the Darkfish Rdoc Generator 2.