Method: PDK::Test::Unit.tear_down

Defined in:
lib/pdk/tests/unit.rb

.tear_downObject



63
64
65
66
67
68
69
70
# File 'lib/pdk/tests/unit.rb', line 63

def self.tear_down
  result = rake('spec_clean', 'Cleaning up after running unit tests.')

  return if result[:exit_code].zero?

  PDK.logger.error('The spec_clean rake task failed with the following error(s):')
  print_failure(result, 'Failed to clean up after running unit tests')
end