Hey,
I have some extensions that make use of non-MW dependent PHP libraries. These libraries come with PHPUnit tests that can be run as standalone. I'd like them to be run together with the tests for my extensions making use of them whenever I run them using phase3/tests/phpunit/phpunit.php. So far I have been doing this by registering the tests via the UnitTestsList hook as if they where regular extension tests. This is not ideal though since then I need to maintain this list of tests and make sure I update it whenever the third party library changes. The library itself does not provide a list of test files, as it's runner just runs everything in the relevant test directory, much like as MW does for core tests. Clearly that is not ideal, so I am looking for a way to not have to maintain such lists. Is there a way to register a whole directory so that the MW phpunit.php script runs all the tests in it?
Cheers
-- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. --
wikitech-l@lists.wikimedia.org