From d59f0f77a7513f85bb8f27dd81f2ee08a2ad7605 Mon Sep 17 00:00:00 2001 From: Martin Afanasjew Date: Sat, 6 Aug 2016 04:24:18 +0200 Subject: [PATCH] tests: fix fluctuations in test coverage (#647) This basically started once our integration tests caused the overall test time to raise above 10 minutes, causing some coverage data to be dropped because SimpleCov believed it to be stale. --- Library/Homebrew/test/.simplecov | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/test/.simplecov b/Library/Homebrew/test/.simplecov index 19363a01ee..e616230813 100644 --- a/Library/Homebrew/test/.simplecov +++ b/Library/Homebrew/test/.simplecov @@ -7,6 +7,11 @@ SimpleCov.start do coverage_dir File.expand_path("#{tests_path}/coverage") root File.expand_path("#{tests_path}/..") + # We manage the result cache ourselves and the default of 10 minutes can be + # too low (particularly on Travis CI), causing results from some integration + # tests to be dropped. This causes random fluctuations in test coverage. + merge_timeout 86400 + add_filter "/Homebrew/compat/" add_filter "/Homebrew/test/" add_filter "/Homebrew/vendor/"