Skip to main content

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)

Read more about HypoFuzz at https://hypofuzz.com/docs/, including the changelog.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hypofuzz-25.11.1.tar.gz (325.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hypofuzz-25.11.1-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

File details

Details for the file hypofuzz-25.11.1.tar.gz.

File metadata

  • Download URL: hypofuzz-25.11.1.tar.gz
  • Upload date:
  • Size: 325.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for hypofuzz-25.11.1.tar.gz
Algorithm Hash digest
SHA256 717a12481378e77c3fd7a44f2c03e17252591ed7e7e5fd2f714d33d7ad1cface
MD5 ce43f245b706514195a0c5261613a50c
BLAKE2b-256 9e594d1f496062e736ad389f5a4deefa2771eaff9ed4f0f431e18ba8c36c6b76

See more details on using hashes here.

File details

Details for the file hypofuzz-25.11.1-py3-none-any.whl.

File metadata

  • Download URL: hypofuzz-25.11.1-py3-none-any.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for hypofuzz-25.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b68b924b187bd4bab4e11ff54126d20129938fca6c35d293a68b11fe9e96bb2a
MD5 f1a1af4a1e94c69c629d618e0235ab68
BLAKE2b-256 e6aba3de6092e8cdb2c87e307b49d22dd88026189942587a17ac1b1e7f31c82c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page