Last modified: 2014-09-12 21:57:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60025, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58025 - Unify Parsoid testing with a single top-level test.js script
Unify Parsoid testing with a single top-level test.js script
Status: NEW
Product: Parsoid
Classification: Unclassified
tests (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Marc Ordinas i Llopis
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-05 10:10 UTC by Marc Ordinas i Llopis
Modified: 2014-09-12 21:57 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Marc Ordinas i Llopis 2013-12-05 10:10:50 UTC
(This is a continuation of the work done for bug #56590)

Right now Parsoid has two main testing scripts:
- roundtrip-test.js makes a single round-trip test for a page. It's also used by the round-trip testing client.
- parserTests.js runs the parsing unit-tests described in parserTests.txt.

There are also some testing utilities in tests/, like parse.js.

It'd be good to provide a top-level test.js that made a few round-trip tests, the unit testing, and any other tests we'd add (like HTTP API tests), both for local use and as a single entry point for CI.

This could be implemented using a node.js testing framework like Mocha (http://visionmedia.github.io/mocha/) to make it easier to add new tests.
Comment 1 Marc Ordinas i Llopis 2013-12-05 10:12:00 UTC
This script should also take care of setting up the environment for testing, like starting a local Parsoid server or a mock MW API if needed, instead of doing it in each script.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links