Sha256: ddd99b5a71358741282c04721f335b227ae1b72ae68ba1d876da1f6958f041c8

Contents?: true

Size: 627 Bytes

Versions: 2

Compression:

Stored size: 627 Bytes

Contents

require "petitest/subscribers/timer_subscriber"

module Petitest
  module Subscribers
    class ProgressReportSubscriber < ::Petitest::Subscribers::TimerSubscriber
      # @note Override
      def after_running_test_case(test_case)
        super
        print ::Petitest::Texts::TestCaseResultCharacterText.new(test_case: test_case)
      end

      # @note Override
      def after_running_test_cases(test_cases)
        super
        puts ::Petitest::Texts::TestCasesResultText.new(
          finished_at: finished_at,
          started_at: started_at,
          test_cases: test_cases,
        )
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
petitest-0.1.1 lib/petitest/subscribers/progress_report_subscriber.rb
petitest-0.1.0 lib/petitest/subscribers/progress_report_subscriber.rb