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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user