Skip to content

Implement example database #9

@DRMacIver

Description

@DRMacIver

In Hypothesis when you rerun a test, it will automatically retry it from the last failure it showed you.

This is a really nice feature and working on property-based tests without it is sad and infuriating. I would like the initial alpha release to not be sad and infuriating for reasons that are not related to its alphaness, so the example database should be part of it.

There are two parts to this:

  • Figure out a stable identifier for each test. This is made slightly complicated by the fact that we're not hooking into the test runner. We can special case a bunch of ways of figuring this out and then fall back to inspecting the current traceback at point of calls or something. This will have some annoyingly fragile failure modes but hopefully will mostly not be too bad.
  • Actually implement the example database keyed off that identifier. This should be relatively straightforward. It's just a directory of files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions