diff options
| author | Baptiste Fontaine | 2016-01-28 00:02:01 +0100 |
|---|---|---|
| committer | Baptiste Fontaine | 2016-02-06 14:20:58 +0100 |
| commit | 268fa841deec9d18bfa0e16b109b7cf0d08099ec (patch) | |
| tree | 50fae3cef9da7a7ec71bd2946daf3378720f09f4 /Library/Homebrew/test | |
| parent | aec4e0723a909f3db42475d3c97bb5204aeaffef (diff) | |
| download | brew-268fa841deec9d18bfa0e16b109b7cf0d08099ec.tar.bz2 | |
tests: fix simplecov handling in integration tests
Closes Homebrew/homebrew#48250.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_integration_cmds.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index d2256ee97..09adaf78e 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -30,7 +30,14 @@ class IntegrationCommandTests < Homebrew::TestCase -rconfig -rintegration_mocks ] - cmd_args << "-rsimplecov" if ENV["HOMEBREW_TESTS_COVERAGE"] + if ENV["HOMEBREW_TESTS_COVERAGE"] + # This is needed only because we currently use a patched version of + # simplecov, and gems installed through git are not available without + # requiring bundler/setup first. See also the comment in test/Gemfile. + # Remove this line when we'll switch back to a stable simplecov release. + cmd_args << "-rbundler/setup" + cmd_args << "-rsimplecov" + end cmd_args << (HOMEBREW_LIBRARY_PATH/"../brew.rb").resolved_path.to_s cmd_args += args Bundler.with_original_env do |
