From 9123439e061e7c652e820a9ebbd96a58fe02e78c Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Wed, 6 Jul 2016 17:40:59 +0200 Subject: [PATCH] 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. --- lib/phpunit/classes/util.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/phpunit/classes/util.php b/lib/phpunit/classes/util.php index bae7dd4673c26..c5e0f6d2dcc89 100644 --- a/lib/phpunit/classes/util.php +++ b/lib/phpunit/classes/util.php @@ -541,7 +541,15 @@ public static function build_component_config_files() { . - '; + + + + . + + . + + + '; // 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