mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
cd6f8ecbbe
The recent directory move broke parserTests, fix it for now. Will need refixing once me migrate to our own repo. Change-Id: I014001cd6904d1dea3f9417c9cde9c80ab079232 |
||
---|---|---|
.. | ||
dumpGrepPatterns | ||
specs | ||
COPYING | ||
dumpGrepper.js | ||
dumpReader.js | ||
expansionTest.js | ||
fetch-parserTests.txt.js | ||
package.json | ||
parserTests-whitelist.js | ||
parserTests.js | ||
parserTests.pegjs | ||
parsoid.js | ||
README | ||
roundtrip-test.js | ||
roundtrip.js | ||
runtests.sh | ||
specs.js | ||
tests.html | ||
wikia-rte-roundtrip-tests.xml | ||
worker.js |
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 .. 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!