Sha256: 70228f295310f3398b51b0f4f452fc32ac1dd5da270836b00d5683a1d4fa4052
Contents?: true
Size: 924 Bytes
Versions: 4
Compression:
Stored size: 924 Bytes
Contents
require "petitest/subscribers/base_subscriber" require "petitest/subscriber_concerns/output_concern" require "petitest/subscriber_concerns/time_concern" module Petitest module Subscribers class ProgressReportSubscriber < ::Petitest::Subscribers::BaseSubscriber include ::Petitest::SubscriberConcerns::OutputConcern include ::Petitest::SubscriberConcerns::TimeConcern # @note Override def after_running_test_case(test_case) super string = ::Petitest::Texts::TestCaseResultCharacterText.new(test_case: test_case).to_s output.print(string) end # @note Override def after_running_test_cases(test_cases) super string = ::Petitest::Texts::TestCasesResultText.new( finished_at: finished_at, started_at: started_at, test_cases: test_cases, ).to_s output.puts(string) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems