Parser tests
From MediaWiki.org
Each parser test case specifies input wikitext and output HTML, to confirm that things operate as expected. The actual output is compared with the desired result, and thus, the parser test cases (also known as parser tests) can be helpful at spotting regressions.
The parser test cases reside in tests/parser/parserTests.txt
They can be run both through the phpunit test suite and through the standalone parserTests.php -- so a parser test failure should trigger a Jenkins test failure.
[edit] Syntax & execution
Syntax is as following:
!! test
Simple paragraph
!! input
This is a simple paragraph.
!! result
<p>This is a simple paragraph.
</p>
!! end
To run the parser tests, go to the root directory of your local MediaWiki installation and execute the following from the command line:
php tests/parserTests.php