Sha256: f8af6f1ae2ba1e855f8bbe967b646871cd60f362c6e4c099b12185c11bc8beed

Contents?: true

Size: 540 Bytes

Versions: 1

Compression:

Stored size: 540 Bytes

Contents

# frozen_string_literal: true

require "minitest/utils/reporter"
require "minitest/utils/test_notifier_reporter"

module Minitest
  def self.plugin_utils_init(options)
    reporters = Minitest.reporter.reporters
    reporters.clear
    reporters << Minitest::Utils::Reporter.new(options[:io], options)

    begin
      require "test_notifier"
      reporters << Minitest::Utils::TestNotifierReporter.new(options[:io],
                                                             options)
    rescue LoadError
      # noop
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
minitest-utils-0.4.8 lib/minitest/utils_plugin.rb