We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a602a9 commit 25cd586Copy full SHA for 25cd586
src/CodeClimate/Bundle/TestReporterBundle/CoverageCollector.php
@@ -23,7 +23,11 @@ public function __construct($paths)
23
$config->setSrcDir($rootDir);
24
$this->setCloverPaths($paths);
25
foreach ($this->getCloverPaths() as $path) {
26
- $config->addCloverXmlPath($rootDir . DIRECTORY_SEPARATOR . $path);
+ if (file_exists($path)) {
27
+ $config->addCloverXmlPath($path);
28
+ } else {
29
+ $config->addCloverXmlPath($rootDir . DIRECTORY_SEPARATOR . $path);
30
+ }
31
}
32
33
$this->api = new Jobs($config);
0 commit comments