diff --git a/lib/ci/reporter/cucumber.rb b/lib/ci/reporter/cucumber.rb index 1467ad2..f58df27 100644 --- a/lib/ci/reporter/cucumber.rb +++ b/lib/ci/reporter/cucumber.rb @@ -101,7 +101,12 @@ def after_examples(*args) end def before_table_row(table_row) - @test_case = TestCase.new("#@scenario (outline: #{table_row.name})") + 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