Module: TestMap::Plugins::Minitest
- Defined in:
- lib/test_map/plugins/minitest.rb
Overview
Minitest plugin for TestMap.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(_base) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/test_map/plugins/minitest.rb', line 7 def self.included(_base) TestMap.logger.info 'Registering hooks for Minitest' ::Minitest.after_run do TestMap.reporter.write "#{Dir.pwd}/#{Config.config[:out_file]}" end end |
Instance Method Details
#after_setup ⇒ Object
14 15 16 17 18 |
# File 'lib/test_map/plugins/minitest.rb', line 14 def after_setup @recorder = FileRecorder.new.tap(&:trace) super end |
#before_teardown ⇒ Object
20 21 22 23 24 25 |
# File 'lib/test_map/plugins/minitest.rb', line 20 def before_teardown super @recorder.stop TestMap.reporter.add @recorder.results end |