Skip to content

Move to py.test and take advantage of it #182

Closed
@gsnedders

Description

@gsnedders

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:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions