2011-11-03 13:55:48 +00:00
|
|
|
Work in progress. :)
|
|
|
|
|
2011-12-13 10:03:01 +00:00
|
|
|
Please see https://www.mediawiki.org/wiki/Future/Parser_development for some
|
2011-12-13 13:00:57 +00:00
|
|
|
information on how to get started with these tests and the current parser
|
2011-12-13 10:03:01 +00:00
|
|
|
architecture.
|
2011-11-03 13:55:48 +00:00
|
|
|
|
2012-03-24 23:31:48 +00:00
|
|
|
Install dependencies and run tests:
|
|
|
|
|
|
|
|
cd tests/parser
|
|
|
|
make test
|
2011-12-13 10:03:01 +00:00
|
|
|
|
|
|
|
== Running parserTests.js ==
|
|
|
|
|
|
|
|
For parserTests, you also need MediaWiki's parser test cases (parserTests.txt)
|
|
|
|
either in a phase3 checkout parallel to extensions (tried by default). You can
|
|
|
|
also specify a test case file as an argument.
|
|
|
|
|
2012-02-18 18:54:12 +00:00
|
|
|
The "make test" target in this directory downloads parserTests.txt and specifies
|
|
|
|
it as the test case automatically. Of course, you may also run tests manually:
|
2011-12-13 10:03:01 +00:00
|
|
|
|
|
|
|
node ./parserTests.js
|
|
|
|
|
|
|
|
Several options are available for parserTests:
|
|
|
|
|
|
|
|
node ./parserTests.js --help
|
|
|
|
|
|
|
|
Enjoy!
|
|
|
|
|
|
|
|
== Running roundtrip tests ==
|
|
|
|
|
|
|
|
Round-trip tests are not yet ported to the current parser architecture. The
|
|
|
|
focus so far has been on parserTests and getting the parser architecture in
|
|
|
|
shape, but we'll get back to round-trip tests eventually.
|