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

Hypofuzz lacks setup hooks of _any_ sort #34

Open
tarunik opened this issue Apr 13, 2024 · 1 comment
Open

Hypofuzz lacks setup hooks of _any_ sort #34

tarunik opened this issue Apr 13, 2024 · 1 comment

Comments

@tarunik
Copy link

tarunik commented Apr 13, 2024

Right now, Hypofuzz provides no hooks for when it starts running a test target. This is a problem because the only time prior to an individual fuzz run one can do setup work is at import time, which makes it nearly impossible to not do that work when running the testsuite conventionally (i.e. with pytest and Hypothesis, not Hypofuzz).

At the very least, a hook called from FuzzProcess.startup would let me do Hypofuzz-only setup steps instead of having to try to detect whether we're running under pytest or not during import, which may not work anyway since Hypofuzz delegates test collection (and importing) to pytest.

@tarunik tarunik changed the title Setup hooks of _any_ sort Hypofuzz lacks setup hooks of _any_ sort Apr 13, 2024
@tarunik
Copy link
Author

tarunik commented Apr 14, 2024

Update: I was able to PoC this by manually monkeypatching FuzzProcess.startup, which'll get me going for now, but exposing a hook API of some sort would be appreciated.

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