MDL-55139 unit tests: Make code-coverage for components way better

By specifying the filter on all those partial phpunit.xml files
we are restricting in a 99% the effort (time and memory) needed
by phpunit to process xdebug execution coverage, retricting it
to the target files within a component.
This commit is contained in:
Eloy Lafuente (stronk7)
2016-10-07 00:41:22 +02:00
parent d9520bc04e
commit 9123439e06
+9 -1
View File
@@ -541,7 +541,15 @@ class phpunit_util extends testing_util {
<testsuite name="@component@_testsuite">
<directory suffix="_test.php">.</directory>
</testsuite>
</testsuites>';
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="false">
<directory suffix=".php">.</directory>
<exclude>
<directory suffix="_test.php">.</directory>
</exclude>
</whitelist>
</filter>';
// Start a sequence between 100000 and 199000 to ensure each call to init produces
// different ids in the database. This reduces the risk that hard coded values will