Sha256: fe3bdd050d5d9ad1c24d5867d6777613d6483c357ad1c531a6712c79bea1a053

Contents?: true

Size: 394 Bytes

Versions: 5

Compression:

Stored size: 394 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.errors
  })

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
test_notifier-2.0.3 lib/test_notifier/runner/minitest.rb
test_notifier-2.0.2 lib/test_notifier/runner/minitest.rb
test_notifier-2.0.1 lib/test_notifier/runner/minitest.rb
test_notifier-2.0.0 lib/test_notifier/runner/minitest.rb
test_notifier-1.0.1 lib/test_notifier/runner/minitest.rb