mediawiki-extensions-Visual.../tests/parser
Gabriel Wicke b91467e144 Document GPL license for Parsoid
This is just to avoid re-licensing along with VE. We want to be compatible
with MediaWiki core to make sure a closely-integrated C port is still
GPL-compatible. We could consider adding MIT to the JS implementation after
porting to C.

Change-Id: Ia83e8620e26c95625793438c4c5e8ddcf2702368
2012-07-18 20:14:13 -07:00
..
dumpGrepPatterns Capturing the regexp is no longer necessary, and speeds up the grepper. Also 2012-02-29 13:02:46 +00:00
COPYING Document GPL license for Parsoid 2012-07-18 20:14:13 -07:00
dumpGrepper.js Namespaces to the rescue. 2012-03-02 15:49:05 +00:00
dumpReader.js Tweak dumpReader to work with current libxmljs and stdin 'data' events. 2012-02-27 15:46:08 +00:00
expansionTest.js First combination of WikiDom serializers with existing parser in 2011-11-03 13:55:48 +00:00
fetch-parserTests.txt.js Fix fetch-parserTests (it is in path instead of fs) 2012-04-04 20:40:09 +02:00
parserTests-whitelist.js Rename data-mw into data-rt 2012-07-16 12:10:08 -07:00
parserTests.js Rename data-mw into data-rt 2012-07-16 12:10:08 -07:00
parserTests.pegjs Add some support for functionhooks in test parser and parserTests.js, and 2012-02-22 15:59:11 +00:00
README As much as I have loved writing Makefiles... I've replaced its functionality with package.json, mostly so we can avoid non-node dependencies. This is one of the recommended practices. We should consider moving tests/parser into modules/parser/tests, other node projects keep all module code in one directory. 2012-04-04 11:02:58 -07:00
roundtrip-test.js Use pegjs from npm 2011-12-01 15:23:23 +00:00
roundtrip.js First combination of WikiDom serializers with existing parser in 2011-11-03 13:55:48 +00:00
runtests.sh Check out old results before running tests 2012-05-30 17:37:10 +02:00
tests.html First combination of WikiDom serializers with existing parser in 2011-11-03 13:55:48 +00:00
wikia-rte-roundtrip-tests.xml First combination of WikiDom serializers with existing parser in 2011-11-03 13:55:48 +00:00
worker.js First combination of WikiDom serializers with existing parser in 2011-11-03 13:55:48 +00:00

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.

Install dependencies and run tests:

cd tests/parser
make test

== 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.