From 9f865209d6cc80ea00b9391679ad5736d5f437ea Mon Sep 17 00:00:00 2001 From: Kosta Harlan Date: Wed, 3 Jul 2019 10:48:55 -0400 Subject: [PATCH] Speed up code coverage generation for local development Changing addUncoveredFilesFromWhitelist to false drastically speeds up code coverage report generation. Including extensions/skins in the config also removes the need to manually edit your phpunit.xml file when you want to inspect code coverage for your extension or skin locally. With this patch you can very quickly generate coverage for an extension/skin or subsection of core, this is especially useful if you are using an IDE that supports running a test and importing its coverage into the editor. The downside to this patch is that the coverage report only contains information about code that's exercised by the tests, so this patch on its own is unsuitable for our current processes in integration/config which generate a full code coverage report per patch for extensions or post-merge for core. However, since we are not yet using phpunit.xml.dist in CI, this patch should be OK to merge as is. A follow-up patch to integration/config will use sed or phpunit-suite-edit.py to set processUncoveredFilesFromWhitelist to true. Bug: T192078 Change-Id: I3d19627fa36f6cc6666c29fdb638272fdaa30630 --- phpunit.xml.dist | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 159adbc3b1..11425a9821 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -36,10 +36,12 @@ - + includes languages maintenance + extensions + skins languages/messages languages/data/normalize-ar.php -- 2.20.1