Skip to content

Commit

Permalink
Improving handling of merge in branch that does not have tests
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Mar 8, 2017
1 parent 331d7f2 commit 7b4c02b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/RunCommand.php
Expand Up @@ -288,7 +288,7 @@ public function getMeasuresFromBranch(BuildService $buildService, string $projec
} elseif ($crap4JFile !== null) {
$methodsProvider = $crap4JFile;
} else {
throw new \RuntimeException('Could not find nor clover file, neither crap4j file for analysis. Searched paths: '.$cloverFilePath.' and '.$crap4JFilePath);
return [EmptyCloverFile::create(), EmptyCloverFile::create()];
}

return [$codeCoverageProvider, $methodsProvider];
Expand Down

0 comments on commit 7b4c02b

Please sign in to comment.