Skip to content

Commit

Permalink
refs matomo-org#4224 include uncovered files to code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Oct 19, 2013
1 parent ef027e5 commit cab7c14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion plugins/CoreConsole/CodeCoverage.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

shell_exec(sprintf('rm -rf %s/tests/results/coverage/*', PIWIK_DOCUMENT_ROOT));

passthru(sprintf('cd %1$s && %2$s --merge --html tests/results/coverage/ --whitelist ./core/ --whitelist ./plugins/ %1$s/tests/results/logs/', PIWIK_DOCUMENT_ROOT, $command));
passthru(sprintf('cd %1$s && %2$s --merge --html tests/results/coverage/ --whitelist ./core/ --whitelist ./plugins/ --add-uncovered %1$s/tests/results/logs/', PIWIK_DOCUMENT_ROOT, $command));
}

}
11 changes: 0 additions & 11 deletions tests/PHPUnit/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,4 @@
</testsuite>
</testsuites>

<!--
Request: code coverage, see ticket #4224
-->

<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">../../core</directory>
<directory suffix=".php">../../plugins</directory>
</whitelist>
</filter>

</phpunit>

0 comments on commit cab7c14

Please sign in to comment.