Adaptive fuzzing for property-based tests
Project description
HypoFuzz
Adaptive fuzzing of Hypothesis tests.
Property-based approaches help you to write better tests which find more bugs, but don't have great ways to exchange much more CPU time for more bugs. The goal of this project is to bring togther the best parts of fuzzing and PBT.
Motivation
You can run a traditional fuzzer like AFL on Hypothesis tests to get basic coverage guidance. This works OK, but there's a lot of performance overhead. Installing, configuring, and connecting all the parts is a pain, and because it assumes one fuzz target per core you probably can't scale up far enough to fuzz your whole test suite.
Alternatively, you can just run Hypothesis with a large max_examples
setting.
This also works pretty well, but doesn't get the benefits of coverage guidance and
you have to guess how long it'll take to run the tests - each gets the same budget.
HypoFuzz solves all of these problems, and more!
Features
- Interleave execution of many test functions
- Prioritise functions where we expect to make progress
- Coverage-guided exploration of your system-under-test
- Seamless python-native and CLI integrations (replaces the
pytest
command) - Web-based time-travel debugging with PyTrace
(automatic if you
pip install hypofuzz[pytrace]
)
Read more about HypoFuzz at https://hypofuzz.com/docs/, including the changelog.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hypofuzz-24.2.1.tar.gz
.
File metadata
- Download URL: hypofuzz-24.2.1.tar.gz
- Upload date:
- Size: 38.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aef14460f725cc8e8acfdbd8f140b6d68f55c9e451ccece85eaf9b83be8db5be |
|
MD5 | 71439d19548cc0e9e13c6add0ae2ca57 |
|
BLAKE2b-256 | ded7f2f622209c9011d17b05b46865475e6f306366521c52e158f1b8ccd09861 |
File details
Details for the file hypofuzz-24.2.1-py3-none-any.whl
.
File metadata
- Download URL: hypofuzz-24.2.1-py3-none-any.whl
- Upload date:
- Size: 38.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa89dadc442df6719843a5b8008eb26481006acf6772165e28b138935e66edd5 |
|
MD5 | ff9ae4cb12cadede828aac33aaccfb78 |
|
BLAKE2b-256 | da96d00c36b2e7af6da175322f6c19e5b9be9c1520d57ef63528cbe94769769d |