wiki.techinc.nl/tests/parser
Matthias Mullie d6bc1b2589 Remove test code that depends on extension
And allow extensions to add their own media handlers.

I'm not too happy with the introduction of another global,
but didn't like the alternatives either:
* Add some hook to MockMediaHandlerFactory that would allow
  extensions to add their own stuff in.
* Use another hook (like ParserTestTables or ParserTestGlobals)
  and then override the service with a new instance - seemed
  too hacky
The good thing about this is that it lets us kill off a class.
I'm other to other suggestions in case I missed something.

Bug: T169258
Depends-On: I5875621c58597426ad5242bf3d07714555c439b5
Change-Id: I1c2e903fb235395a8de8e0f7bf65ce07739d2930
2017-08-13 12:04:37 -04:00
..
preprocess Do not use real message names in 'All_system_messages' preprocessor test 2017-03-08 17:02:53 +01:00
DbTestPreviewer.php Use consistent spaces at start and end of comments 2017-03-30 22:06:40 +02:00
DbTestRecorder.php Move IDatabase/IMaintainableDatabase to Rdbms namespace 2017-03-28 15:32:38 -07:00
DjVuSupport.php Remove trailing empty lines in PHP 2017-01-16 22:06:43 +01:00
editTests.php Parser test file editor 2016-10-28 16:15:59 +11:00
extraParserTests.txt Strip U+0000 in wikitext 2017-03-06 22:23:38 +00:00
fuzzTest.php Use namespaced ScopedCallback 2016-10-17 15:46:05 -07:00
MultiTestRecorder.php Refactor parser tests 2016-09-12 16:11:42 +10:00
ParserTestMockParser.php parserTests: Use a mock parser during article insertion 2016-10-06 17:08:27 +11:00
ParserTestParserHook.php Split up testHelpers.inc, break off fuzz testing 2016-09-08 09:06:45 +10:00
ParserTestPrinter.php Remove trailing empty lines in PHP 2017-01-16 22:06:43 +01:00
ParserTestResult.php Refactor parser tests 2016-09-12 16:11:42 +10:00
ParserTestResultNormalizer.php Remove trailing empty lines in PHP 2017-01-16 22:06:43 +01:00
ParserTestRunner.php Remove test code that depends on extension 2017-08-13 12:04:37 -04:00
parserTests.php Autodiscover parser tests for extensions, deprecate $wgParserTestFiles 2017-07-08 00:47:02 +00:00
parserTests.txt Human-readable section ID support 2017-08-01 20:32:20 -07:00
PhpunitTestRecorder.php Refactor parser tests 2016-09-12 16:11:42 +10:00
README tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
TestFileEditor.php parser test editor: Fix emitting of !! hooks 2017-01-31 03:12:15 +00:00
TestFileReader.php Remove trailing empty lines in PHP 2017-01-16 22:06:43 +01:00
TestRecorder.php Remove trailing empty lines in PHP 2017-01-16 22:06:43 +01:00
TidySupport.php Don't test for tidy class on hhvm 2017-02-13 14:54:48 -08:00

Parser tests can be run either via PHPUnit or by using the standalone
parserTests.php in this directory. The standalone version provides more
options.

To run parser tests via PHPUnit:

 $ cd tests/phpunit
 ./phpunit.php --testsuite parsertests

You can optionally filter by title using --filter, e.g.

 ./phpunit.php --testsuite parsertests --filter="T6400"