Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy