wiki.techinc.nl/tests/phpunit/includes/parser
Antoine Musso 50c5a9d27d tests: let us select/exclude ParserTests
The MediaWiki test suite is painfully slow and delays merging of
changes. More than half of the time is spent in
ParserTest_Parser⁄parserTests::testParserTest which is the PHPUnit
wrapping class for the parser tests.

This patch let us extract the parser tests so we can run them
independently. By running them parallely with the rest of the tests,
that will speed up the gate processing time.

Mark the MediaWikiParserTest and NewParserTest class as belonging to the
test group 'ParserTests'.  Will let us filter them out via PHPUnit
option --exclude-group

Introduce a new PHPUnit test suite 'parsertests' which loads the
MediaWiki core parser tests wrapper 'MediaWikiParserTest' and the suite
which loads the extensions parser tests (ExtensionsParserTestSuite.php).
This way we can run solely the parser tests with:

  cd tests/phpunit
  php phpunit.php --testsuite ParserTests

Wikimedia CI can then be configure to run two jobs:

 A) php phpunit.php --exclude-group ParserTests
 B) php phpunit.php --testsuite ParserTests

Bug: T114314
Change-Id: Ie819bab43163995048c073691c4c5d258f797c02
2015-12-01 12:26:10 +00:00
..
MagicVariableTest.php Fix issues identified by SpaceBeforeSingleLineComment sniff 2015-09-26 23:06:52 +00:00
MediaWikiParserTest.php tests: let us select/exclude ParserTests 2015-12-01 12:26:10 +00:00
NewParserTest.php tests: let us select/exclude ParserTests 2015-12-01 12:26:10 +00:00
ParserMethodsTest.php Make lines short to pass phpcs in parser tests PHP files 2015-10-01 19:40:18 +00:00
ParserOutputTest.php Remove getSecondaryDataUpdates and friends from ParserOutput. 2015-02-24 11:01:16 +01:00
ParserPreloadTest.php General cleanup of Parser tests 2013-10-23 12:26:15 +00:00
PreprocessorTest.php Some bugzilla.wikimedia.org -> phabricator.wikimedia.org changes 2015-09-24 17:17:25 +02:00
TagHooksTest.php Make lines short to pass phpcs in parser tests PHP files 2015-10-01 19:40:18 +00:00
TidyTest.php Abstract and refactor Tidy support 2015-09-10 20:18:52 -07:00