aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMartin Afanasjew2016-01-20 11:33:33 +0100
committerMartin Afanasjew2016-01-21 05:42:23 +0100
commit89f97295b824adb7c92ef7b78c2771d792362ee5 (patch)
tree565f0807654ba681b8f42cd1b0b16666aa2a2627 /Library
parent274640c97a44756f1b4f32cf0adfd540cbce8b1a (diff)
downloadbrew-89f97295b824adb7c92ef7b78c2771d792362ee5.tar.bz2
tests: speed up integration test runs
While running a command from the integration tests, invoke `.result` to trigger a save of the result set, but don't call `.format!` to avoid (re)generating the HTML output with every run. The final output will still be written once the main unit test run completes. This significantly speeds up the integration tests, that take about 1/3 less time to complete when not generating the intermediate output. Closes Homebrew/homebrew#48280. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/.simplecov2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/.simplecov b/Library/Homebrew/test/.simplecov
index 21c6acc18..012a6275f 100644
--- a/Library/Homebrew/test/.simplecov
+++ b/Library/Homebrew/test/.simplecov
@@ -18,7 +18,7 @@ if ENV["HOMEBREW_INTEGRATION_TEST"]
SimpleCov.at_exit do
exit_code = $!.nil? ? 0 : $!.status
$stdout.reopen("/dev/null")
- SimpleCov.result.format!
+ SimpleCov.result # Just save result, but don't write formatted output.
exit! exit_code
end
end