Module: Minitest::Perf::Plugin

Included in:
Test
Defined in:
lib/minitest/perf/plugin.rb

Instance Method Summary collapse

Instance Method Details

#after_teardownObject



9
10
11
12
# File 'lib/minitest/perf/plugin.rb', line 9

def after_teardown
  super
  current_perf_run.finish(self.class.name, name)
end

#before_setupObject



4
5
6
7
# File 'lib/minitest/perf/plugin.rb', line 4

def before_setup
  current_perf_run.start(self.class.name, name)
  super
end

#current_perf_runObject



14
15
16
# File 'lib/minitest/perf/plugin.rb', line 14

def current_perf_run
  @@current_perf_run ||= Minitest::Perf::Run.new
end