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

41 lines
1.2 KiB
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 current parser
2011-12-13 10:03:01 +00:00
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)
* coffee-script (if you'd like to modify .coffee files)
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.
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.