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
|
|
|
|
2011-12-13 10:03:01 +00:00
|
|
|
Needed npm modules:
|
2011-12-01 15:23:23 +00:00
|
|
|
* pegjs
|
2011-11-30 15:20:46 +00:00
|
|
|
* colors
|
2011-11-28 11:40:14 +00:00
|
|
|
* html5
|
2011-11-03 13:55:48 +00:00
|
|
|
* jquery
|
2011-11-28 11:40:14 +00:00
|
|
|
* jsdom
|
2011-11-03 13:55:48 +00:00
|
|
|
* diff
|
|
|
|
* libxmljs (requires native compilation)
|
2011-11-30 16:33:26 +00:00
|
|
|
* optimist (for argument handling)
|
2011-12-13 10:03:01 +00:00
|
|
|
* webworker (not needed for parserTests)
|
|
|
|
|
|
|
|
== 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.
|
|
|
|
|
|
|
|
Then, in this directory, try:
|
|
|
|
|
|
|
|
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.
|