wiki.techinc.nl/tests/parser
Subramanya Sastry 61b54be68c ParserTests: Reset ParsoidSiteConfig always
When a test sets options to change global config, we have to rebuild
the ParsoidSiteConfig instance to pick up the test options since
the service container caches the SiteConfig instance.

For now, we are unconditionally resetting SiteConfig before every
<test,mode> combination. At a later time, we can figure out a way
to do it more conditionally; filed T310283 for that.

Bug: T310283
Change-Id: Ia2dfd37e3da3e1e8b31ab917b1f831eaea5eb5c5
2022-06-09 09:59:33 -04:00
..
preprocess Use IEC prefixes instead of SI prefixes for byte sizes (docs+backend) 2021-06-28 11:59:09 +01:00
AnsiTermColorer.php Pass <Test,TestMode> as argument pair, deprecate old TestFileReader 2022-06-03 17:15:38 -04:00
DbTestPreviewer.php Pass <Test,TestMode> as argument pair, deprecate old TestFileReader 2022-06-03 17:15:38 -04:00
DbTestRecorder.php Pass <Test,TestMode> as argument pair, deprecate old TestFileReader 2022-06-03 17:15:38 -04:00
DjVuSupport.php Drop $wgDjvuToXML 2021-09-10 23:40:31 +02:00
DummyTermColorer.php maintenance: Move MWTerm classes to /tests/parser/ 2022-03-24 21:01:14 +00:00
editTests.php Pass <Test,TestMode> as argument pair, deprecate old TestFileReader 2022-06-03 17:15:38 -04:00
extraParserTests.txt Move parser test with stray carriage return to extraParserTests.txt 2021-10-14 00:49:58 +02:00
fuzzTest.php Parser tests: the Test::$config property is now always an array 2022-06-03 17:16:24 -04:00
legacyMediaParserTests.txt Set alt in galleries, despite caption being visible 2022-06-07 18:20:26 -04:00
mediaParserTests.txt Sync up with Parsoid parserTests 2022-06-08 12:24:35 -04:00
MultiTestRecorder.php Pass <Test,TestMode> as argument pair, deprecate old TestFileReader 2022-06-03 17:15:38 -04:00
ParserTestMockParser.php Improve test coverage for ApiStashEdit 2018-08-21 15:32:29 -07:00
ParserTestParserHook.php tests/parser: Run phan 2022-06-02 00:13:30 +02:00
ParserTestPrinter.php Pass <Test,TestMode> as argument pair, deprecate old TestFileReader 2022-06-03 17:15:38 -04:00
ParserTestResult.php Pass <Test,TestMode> as argument pair, deprecate old TestFileReader 2022-06-03 17:15:38 -04:00
ParserTestResultNormalizer.php tests/parser: Run phan 2022-06-02 00:13:30 +02:00
ParserTestRunner.php ParserTests: Reset ParsoidSiteConfig always 2022-06-09 09:59:33 -04:00
parserTests.php tests/parser: Run phan 2022-06-02 00:13:30 +02:00
parserTests.txt Sync up with Parsoid parserTests 2022-06-08 12:24:35 -04:00
pfeqParserTests.txt Add {{=}} as a built-in magic word 2022-05-20 13:08:20 -04:00
PhpunitTestRecorder.php Pass <Test,TestMode> as argument pair, deprecate old TestFileReader 2022-06-03 17:15:38 -04:00
README tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
TestFileEditor.php tests/parser: Add documentation for class properties 2022-06-01 20:57:09 +02:00
TestMode.php Pass <Test,TestMode> as argument pair, deprecate old TestFileReader 2022-06-03 17:15:38 -04:00
TestRecorder.php Pass <Test,TestMode> as argument pair, deprecate old TestFileReader 2022-06-03 17:15:38 -04: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"