Summary: We don't set $paths when running --everything.
Test Plan: Ran `arc unit --everything` with coverage.
Reviewers: vrana
Reviewed By: vrana
CC: aran
Differential Revision: https://secure.phabricator.com/D5260
$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;
}