Module: CiLogger::Minitest::Integration

Included in:
ActiveSupport::TestCase
Defined in:
lib/ci_logger/minitest/integration.rb

Instance Method Summary collapse

Instance Method Details

#before_teardownObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/ci_logger/minitest/integration.rb', line 4

def before_teardown
  super
  if CiLogger.disabled?
    Registry.sync
  elsif passed? || skipped?
    Registry.clear
  else
    Registry.sync
  end
end