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)
  • 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


Download files

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

Source Distribution

hypofuzz-22.10.1.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

hypofuzz-22.10.1-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hypofuzz-22.10.1.tar.gz
  • Upload date:
  • Size: 33.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for hypofuzz-22.10.1.tar.gz
Algorithm Hash digest
SHA256 d8cf25419b523f25c9587ca8afc6e237c2162a27a9ef58c64cef3356eaa61fbc
MD5 94acdbfbe622178a417bc8e5e2960434
BLAKE2b-256 a95c09129725f6da8e49e218e27198d05e6878705c05a05d2567e82db0cf221a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypofuzz-22.10.1-py3-none-any.whl
  • Upload date:
  • Size: 35.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for hypofuzz-22.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 783ea85366e230dc82c841dfc8b91d1386ab1885e4b3754fc7ccfc07870db5c2
MD5 1c694f2d87606e9c961abac63dbb8e3f
BLAKE2b-256 e52269e5b05f0594b0e335becb1116829608a1f2962c7c74d862ca9f0992bc2d

See more details on using hashes here.

Supported by

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