diff --git a/src/unit/engine/phutil/ArcanistPhutilTestCase.php b/src/unit/engine/phutil/ArcanistPhutilTestCase.php index 3f7d4507..b1cef23a 100644 --- a/src/unit/engine/phutil/ArcanistPhutilTestCase.php +++ b/src/unit/engine/phutil/ArcanistPhutilTestCase.php @@ -508,8 +508,12 @@ abstract class ArcanistPhutilTestCase { $coverage[substr($file, strlen($this->projectRoot) + 1)] = $str; } - // Only keep coverage information for files modified by the change. - $coverage = array_select_keys($coverage, $this->paths); + // Only keep coverage information for files modified by the change. In + // the case of --everything, we won't have paths, so just return all the + // coverage data. + if ($this->paths) { + $coverage = array_select_keys($coverage, $this->paths); + } return $coverage; }