2011-11-03 13:55:48 +00:00
|
|
|
Work in progress. :)
|
|
|
|
|
2012-07-23 21:43:12 +00:00
|
|
|
Please see https://www.mediawiki.org/wiki/Parsoid for some information on how
|
|
|
|
to get started with these tests and the current parser architecture.
|
2011-11-03 13:55:48 +00:00
|
|
|
|
2012-03-24 23:31:48 +00:00
|
|
|
Install dependencies and run tests:
|
|
|
|
|
2012-07-25 00:22:45 +00:00
|
|
|
(cd .. if you are in this README file's directory)
|
2012-07-23 21:43:12 +00:00
|
|
|
npm test
|
2011-12-13 10:03:01 +00:00
|
|
|
|
|
|
|
== Running parserTests.js ==
|
|
|
|
|
2012-07-23 21:43:12 +00:00
|
|
|
For parserTests, you also need MediaWiki's parser test cases (parserTests.txt).
|
|
|
|
'npm test' from the modules directory automatically fetches the current
|
|
|
|
version to this directory. You can also specify a test case file as an
|
|
|
|
argument. You can also symlink parserTests.txt from a core git checkout.
|
2011-12-13 10:03:01 +00:00
|
|
|
|
|
|
|
node ./parserTests.js
|
|
|
|
|
|
|
|
Several options are available for parserTests:
|
|
|
|
|
|
|
|
node ./parserTests.js --help
|
|
|
|
|
2012-07-23 21:43:12 +00:00
|
|
|
Example for round-trip testing:
|
2011-12-13 10:03:01 +00:00
|
|
|
|
2012-07-23 21:43:12 +00:00
|
|
|
node ./parserTests.js --roundtrip
|
2011-12-13 10:03:01 +00:00
|
|
|
|
2012-07-23 21:43:12 +00:00
|
|
|
Enjoy!
|