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

#initializeSummary

Returns a new instance of Summary.



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

def initialize
  @test_cases = Test::Result::Summary.new
  @test_steps = Test::Result::Summary.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missingObject



20
21
# File 'lib/cucumber/core/report/summary.rb', line 20

def method_missing(*)
end

Instance Attribute Details

#test_casesObject (readonly)

Returns the value of attribute test_cases.



5
6
7
# File 'lib/cucumber/core/report/summary.rb', line 5

def test_cases
  @test_cases
end

#test_stepsObject (readonly)

Returns the value of attribute test_steps.



5
6
7
# File 'lib/cucumber/core/report/summary.rb', line 5

def test_steps
  @test_steps
end

Instance Method Details

#after_test_case(test_case, result) ⇒ Object



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

def after_test_case(test_case, result)
  result.describe_to test_cases
end

#after_test_step(test_step, result) ⇒ Object



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

def after_test_step(test_step, result)
  result.describe_to test_steps
end