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

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/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.



8
9
10
11
12
13
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/report/summary.rb', line 8

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.



6
7
8
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/report/summary.rb', line 6

def test_cases
  @test_cases
end

#test_stepsObject (readonly)

Returns the value of attribute test_steps.



6
7
8
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/report/summary.rb', line 6

def test_steps
  @test_steps
end

Instance Method Details

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

Returns:

  • (Boolean)


15
16
17
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/report/summary.rb', line 15

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