Sha256: cbda49ef82fb4e4e2444e225a7d6e0e763d74f28a068984cfc4b1f0d5366e881

Contents?: true

Size: 405 Bytes

Versions: 21

Compression:

Stored size: 405 Bytes

Contents

module Minitest
  module Utils
    class TestNotifierReporter < Minitest::StatisticsReporter
      def report
        super

        stats = TestNotifier::Stats.new(:minitest, {
          count: count,
          assertions: assertions,
          failures: failures,
          errors: errors
        })

        TestNotifier.notify(status: stats.status, message: stats.message)
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
minitest-utils-0.4.4 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.4.3 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.4.2 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.4.1 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.4.0 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.3.1 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.3.0 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.2.9 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.2.8 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.2.7 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.2.6 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.2.5 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.2.4 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.2.3 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.2.1 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.2.0 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.1.4 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.1.3 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.1.2 lib/minitest/utils/test_notifier_reporter.rb
minitest-utils-0.1.1 lib/minitest/utils/test_notifier_reporter.rb