module Cucumber
  module Core
    module Report
      class Summary
        attr_reader :test_cases, :test_steps

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

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

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

        def method_missing(*)
        end

      end
    end
  end
end

module Cucumber
  module Core

    # A ++Report++ is how you find out what is happening during your test run.
    # As the test cases and steps are executed, messages are sent to the report.
    #
    # A ++Report++ needs to respond to the following methods:
    #   * ++before_test_case(test_case)++
    #   * ++after_test_case(test_case, result)++
    #   * ++ before_test_step(test_step)++
    #   * ++ after_test_step(test_step, result)++
    #   * ++done++
    
    module Report
      class Summary
        attr_reader :test_cases, :test_steps

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

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

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

        def method_missing(*)
        end

      end
    end
  end
end

Add comment (mostly taken from README)
Add comment (mostly taken from README)
