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.1.0 lib/minitest/utils/test_notifier_reporter.rb