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 |
||
|---|---|---|
| .. | ||
| preprocess | ||
| AnsiTermColorer.php | ||
| DbTestPreviewer.php | ||
| DbTestRecorder.php | ||
| DjVuSupport.php | ||
| DummyTermColorer.php | ||
| editTests.php | ||
| extraParserTests.txt | ||
| fuzzTest.php | ||
| legacyMediaParserTests.txt | ||
| mediaParserTests.txt | ||
| MultiTestRecorder.php | ||
| ParserTestMockParser.php | ||
| ParserTestParserHook.php | ||
| ParserTestPrinter.php | ||
| ParserTestResult.php | ||
| ParserTestResultNormalizer.php | ||
| ParserTestRunner.php | ||
| parserTests.php | ||
| parserTests.txt | ||
| pfeqParserTests.txt | ||
| PhpunitTestRecorder.php | ||
| README | ||
| TestFileEditor.php | ||
| TestMode.php | ||
| TestRecorder.php | ||
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"