...
Add the following to the phpunit.xml file directly after the </php>
tag.
Totara 14 and higher
File: test/phpunit/phpunit.xml
Code Block |
---|
<coverage> <include> <directory suffix=".php">/var/www/html/server/totara/core/classes/local</directory> <directory suffix=".php">/var/www/html/server/totara/core/classes/task</directory> <file>/var/www/html/server/totara/core/classes/visibility_adviser.php</file> </include> </coverage> |
Totara 13
File: test/phpunit/phpunit.xml
Code Block |
---|
<filter> <whitelist> <directory suffix=".php">/var/www/html/server/totara/core/classes/local</directory> <directory suffix=".php">/var/www/html/server/totara/core/classes/task</directory> <file>/var/www/html/server/totara/core/classes/visibility_adviser.php</file> </whitelist> </filter> |
Totara 12
File: phpunit.xml
Same as for Totara 13 except that you have to add the processUncoveredFilesFromWhitelist="false" addUncoveredFilesFromWhitelist="false"
attributes.
...