Module: Minitest

Defined in:
lib/minitest/simplecov_plugin.rb

Overview

Class Method Summary collapse

Class Method Details

.plugin_simplecov_init(_options) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/minitest/simplecov_plugin.rb', line 6

def self.plugin_simplecov_init(_options)
  if defined?(SimpleCov)
    SimpleCov.external_at_exit = true

    Minitest.after_run do
      SimpleCov.at_exit_behavior
    end
  end
end