Module: Testprune::Adapters::Minitest
- Defined in:
- lib/testprune/adapters/minitest.rb
Overview
Minitest integration. Brackets each test via the before_setup/after_teardown lifecycle hooks rather than wrapping #run. Wrapping #run is unsafe here: minitest-reporters does ‘alias_method :run_without_hooks, :run` after we’d prepend, capturing our method into its alias and causing infinite recursion. The lifecycle hooks are called exactly once per test and are not aliased.
Defined Under Namespace
Modules: Hook
Class Method Summary collapse
Class Method Details
.install ⇒ Object
37 38 39 |
# File 'lib/testprune/adapters/minitest.rb', line 37 def self.install ::Minitest::Test.prepend(Hook) end |