Module: MiniTest::Perf::Plugin
- Included in:
- Unit::TestCase
- Defined in:
- lib/minitest/perf/plugin.rb
Instance Method Summary collapse
Instance Method Details
#after_teardown ⇒ Object
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_setup ⇒ Object
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_run ⇒ Object
14 15 16 |
# File 'lib/minitest/perf/plugin.rb', line 14 def current_perf_run @@current_perf_run ||= MiniTest::Perf::Run.new end |