- Notifications
You must be signed in to change notification settings - Fork294
Closed
Labels
Milestone
Description
We want to move to py.test so that:
- we can select to only run parser tests with one tree builder (and tree walker tests with only one tree walker, etc.)
- we can make use of the plugin API to create a means of dumping test failures and build support for expected failures into the testsuites from html5lib-tests
- it is easier to create nicer error messages
- better support for skipped and expected failures so we can walk towards having a constant number of tests across all platforms, optionally skipped
https://github.com/gsnedders/html5lib-python/tree/expected_failures_pytest is my current WIP branch implementing this.
Status:
Needed to fix failures:
- Make sure tests from generators run in a deterministic order
- Use pytest-expect
The rest:
- Move tokenizer and serialiser tests over to generating test objects from the JSON files.
- Refactor support.py.
- Check the submodule is imported (seeWarn on missing testdata submodule #122).