Module: Profiler::TestHelpers::MinitestSupport

Defined in:
lib/profiler/test_helpers/minitest_support.rb

Overview

Minitest integration for the profiler.

Usage in test_helper.rb:

require 'profiler/test_helpers/minitest_support'
Profiler::TestHelpers::MinitestSupport.install

Defined Under Namespace

Modules: RunWrapper

Class Method Summary collapse

Class Method Details

.installObject



15
16
17
18
19
20
21
22
23
# File 'lib/profiler/test_helpers/minitest_support.rb', line 15

def self.install
  require "minitest"

  Minitest::Test.prepend(RunWrapper)

  Minitest.after_run do
    Profiler::TestHelpers::Reporter.print
  end
end