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

34 lines
999 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 current parser
2011-12-13 10:03:01 +00:00
architecture.
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.
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.