aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/lib/integration_mocks.rb
blob: 6effb0cde102ead12e352c0e0e3129aacb7bfde9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Homebrew
  module Diagnostic
    class Checks
      def check_integration_test
        "This is an integration test" if ENV["HOMEBREW_INTEGRATION_TEST"]
      end
    end
  end

  def exec(*args)
    if ENV["HOMEBREW_TESTS_COVERAGE"] && ENV["HOMEBREW_INTEGRATION_TEST"]
      # Ensure we get coverage results before replacing the current process.
      SimpleCov.result
    end
    Kernel.exec(*args)
  end
end