mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 10:59:56 +00:00
0ca9b00100
Note that the compiled .js file (generated by "make"/"make test") is still under version control so folks can work on the project even without a running "coffee" command in PATH. Also updated README to mention coffee-script and "make test".
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
Work in progress. :)
|
|
|
|
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
|
|
architecture.
|
|
|
|
Needed npm modules:
|
|
* pegjs
|
|
* colors
|
|
* html5
|
|
* jquery
|
|
* jsdom
|
|
* diff
|
|
* libxmljs (requires native compilation)
|
|
* optimist (for argument handling)
|
|
* webworker (not needed for parserTests)
|
|
* coffee-script (if you'd like to modify .coffee files)
|
|
|
|
== 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:
|
|
|
|
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.
|