Sha256: 4b3126e4832c36b44cc853efb03086af5a498708adbb269894540033bbb9ba6c

Contents?: true

Size: 539 Bytes

Versions: 2

Compression:

Stored size: 539 Bytes

Contents

begin
  require "guard/minitest/notifier"
rescue LoadError
  puts "You need guard-minitest to use this reporter."
  exit 1
end

module MiniTest
  module Reporters
    class GuardReporter
      include Reporter

      def after_suites(*args)
        duration = Time.now - runner.start_time
        ::Guard::MinitestNotifier.notify(runner.test_count, runner.assertion_count,
                                         runner.failures, runner.errors,
                                         runner.skips, duration)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minitest-reporters-0.9.0 lib/minitest/reporters/guard_reporter.rb
minitest-reporters-0.8.0 lib/minitest/reporters/guard_reporter.rb