Class: Cucumber::Core::Report::Summary

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/core/report/summary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_bus) ⇒ Summary

Returns a new instance of Summary.



9
10
11
12
13
14
# File 'lib/cucumber/core/report/summary.rb', line 9

def initialize(event_bus)
  @previous_test_case = nil
  @test_cases = Test::Result::Summary.new
  @test_steps = Test::Result::Summary.new
  subscribe_to(event_bus)
end

Instance Attribute Details

#test_casesObject (readonly)

Returns the value of attribute test_cases.



7
8
9
# File 'lib/cucumber/core/report/summary.rb', line 7

def test_cases
  @test_cases
end

#test_stepsObject (readonly)

Returns the value of attribute test_steps.



7
8
9
# File 'lib/cucumber/core/report/summary.rb', line 7

def test_steps
  @test_steps
end

Instance Method Details

#ok?(strict: Test::Result::StrictConfiguration.new) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/cucumber/core/report/summary.rb', line 16

def ok?(strict: Test::Result::StrictConfiguration.new)
  test_cases.ok?(strict: strict)
end