From 89f97295b824adb7c92ef7b78c2771d792362ee5 Mon Sep 17 00:00:00 2001 From: Martin Afanasjew Date: Wed, 20 Jan 2016 11:33:33 +0100 Subject: [PATCH] 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 --- Library/Homebrew/test/.simplecov | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/test/.simplecov b/Library/Homebrew/test/.simplecov index 21c6acc18a..012a6275f1 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