Module: Testprune::Adapters::Minitest::Hook

Defined in:
lib/testprune/adapters/minitest.rb

Instance Method Summary collapse

Instance Method Details

#after_teardownObject



19
20
21
22
23
24
25
26
# File 'lib/testprune/adapters/minitest.rb', line 19

def after_teardown
  super
ensure
  recorder = Testprune::Recorder.instance
  id = "#{self.class}##{name}"
  file, line = location
  recorder.finish_test(id: id, description: id, file: file, line: line)
end

#before_setupObject



14
15
16
17
# File 'lib/testprune/adapters/minitest.rb', line 14

def before_setup
  Testprune::Recorder.instance.start_test
  super
end