mediawiki-extensions-Visual.../tests/parser
Gabriel Wicke 305b5981fe Update test README
Change-Id: Icc4f26804295d48bcf244e61ef7654e31b05b306
2012-07-24 10:55:12 -07:00
..
dumpGrepPatterns Capturing the regexp is no longer necessary, and speeds up the grepper. Also 2012-02-29 13:02:46 +00:00
specs Added Jasmine specs to Parsoid. 2012-07-05 22:52:09 -05: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
package.json Added Jasmine specs to Parsoid. 2012-07-05 22:52:09 -05: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
parsoid.js Added Jasmine specs to Parsoid. 2012-07-05 22:52:09 -05:00
README Update test README 2012-07-24 10:55:12 -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
specs.js Added Jasmine specs to Parsoid. 2012-07-05 22:52:09 -05: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/Parsoid for some information on how
to get started with these tests and the current parser architecture.

Install dependencies and run tests:

cd modules/parser 
(cd ../../modules/parser if you are in this README file's directory)
npm test

== Running parserTests.js ==

For parserTests, you also need MediaWiki's parser test cases (parserTests.txt). 
'npm test' from the modules directory automatically fetches the current
version to this directory. You can also specify a test case file as an
argument. You can also symlink parserTests.txt from a core git checkout.

node ./parserTests.js

Several options are available for parserTests:

node ./parserTests.js --help

Example for round-trip testing:

node ./parserTests.js --roundtrip

Enjoy!