Sha256: 141791a35555f250af63879911193a2ece34f155deaa4bc6dedef3b14cdaa68d

Contents?: true

Size: 393 Bytes

Versions: 2

Compression:

Stored size: 393 Bytes

Contents

require "test_notifier"
require "minitest/unit"

MiniTest::Unit.after_tests do
  runner = MiniTest::Unit.runner

  stats = TestNotifier::Stats.new(:minitest, {
    :count      => runner.test_count,
    :assertions => runner.assertion_count,
    :failures   => runner.failures,
    :errors     => runner.skips
  })

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
test_notifier-1.0.0 lib/test_notifier/runner/minitest.rb
test_notifier-0.4.0 lib/test_notifier/runner/minitest.rb