mediawiki-extensions-Visual.../tests/parser/README

39 lines
990 B
Plaintext
Raw Normal View History

Work in progress. :)
2011-12-13 10:03:01 +00:00
Please see https://www.mediawiki.org/wiki/Future/Parser_development for some
information on how to get started with these tests and the curren parser
architecture.
2011-12-13 10:03:01 +00:00
Needed npm modules:
2011-12-01 15:23:23 +00:00
* pegjs
* colors
2011-11-28 11:40:14 +00:00
* html5
* jquery
2011-11-28 11:40:14 +00:00
* jsdom
* diff
* libxmljs (requires native compilation)
* 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.