Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement example database #9

Open
1 of 2 tasks
DRMacIver opened this issue Feb 1, 2018 · 1 comment
Open
1 of 2 tasks

Implement example database #9

DRMacIver opened this issue Feb 1, 2018 · 1 comment

Comments

@DRMacIver
Copy link
Member

DRMacIver commented Feb 1, 2018

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.
@DRMacIver
Copy link
Member Author

I'm actually going to remove this from the initial alpha release. Given the seed printing support in rspec it's not an essential feature, just a really nice one, so I think I'd rather spend the time on getting the provider library nice and useful for the alpha than on this.

Still absolutely an essential feature mind you! Just not an initial alpha release feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant