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

Split the HypoFuzz engine into a Hypothesis backend and an executor #36

Open
Zac-HD opened this issue Apr 22, 2024 · 0 comments
Open

Split the HypoFuzz engine into a Hypothesis backend and an executor #36

Zac-HD opened this issue Apr 22, 2024 · 0 comments

Comments

@Zac-HD
Copy link
Owner

Zac-HD commented Apr 22, 2024

Hypothesis has recently grown a notion of alternative backends, which use the new IR layer (HypothesisWorks/hypothesis#3921) to support e.g. symbolic execution (HypothesisWorks/hypothesis#3914).

Supporting @settings(backend="hypofuzz") would be quite useful - for example, as an easy way to work with Pytest fixtures, or to support fuzzing in environments where Pytest is not available at all (CPython alphas?).

The implementation isn't trivial, since we have to rearrange a lot of code to both fit with the IR-oriented, context-manager-scoped interface for backends - while also having a hook to allow for interleaving execution of multiple tests - but I don't think there are any fundamental difficulties.

This change is independent of #3, but strongly complimentary in practice.

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