Extensions may add tests by directory
authorAdam Roses Wight <awight@wikimedia.org>
Sun, 28 Sep 2014 21:32:55 +0000 (14:32 -0700)
committerHashar <hashar@free.fr>
Tue, 21 Oct 2014 09:37:10 +0000 (09:37 +0000)
commitcf4654399bd3e1c109ec8f94bfa69fc44de18054
treef4d6fe24911d4f8cf4f4e7db39cc071f0c2214aa
parent4a3a3e4d3ee039656fd70143b2ba4bf9afa4b9fd
Extensions may add tests by directory

The UnitTestsList hook can now be used to add entire directories of
tests, à la phpunit.xml's <directory> tag.  The test suite is built by
recursively scanning the directory for any files ending in "Test.php".

TODO:
* Update online hook documentation.
* Generate and autoload a classmap for scanned directories.

Bug: 70630
Change-Id: I3089372f9d7c645e16ff0984a959f982a3bc639f
RELEASE-NOTES-1.24
docs/hooks.txt
tests/phpunit/suites/ExtensionsTestSuite.php