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

Investigate adding property-based testing? #45

Open
pfmoore opened this issue Apr 17, 2020 · 0 comments
Open

Investigate adding property-based testing? #45

pfmoore opened this issue Apr 17, 2020 · 0 comments

Comments

@pfmoore
Copy link
Collaborator

pfmoore commented Apr 17, 2020

I think it could be useful to add some property-based tests to resolvelib, to stress test some of the basic properties of the resolver. Some ideas I had for useful tests:

  • If the resolver succeeds, the resolver result will satisfy the supplied requirements.
  • Given a set of requirements, adding an extra one that contradicts one in the set will cause a resolver failure.

The key will be setting up "strategies" that generate sets of candidates and requirements.

I'm mainly adding this here as a reminder, so that I don't forget to look at this at some point in the future.

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