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-23.5.3.tar.gz (35.8 kB view details)

Uploaded Source

Built Distribution

hypofuzz-23.5.3-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hypofuzz-23.5.3.tar.gz
  • Upload date:
  • Size: 35.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for hypofuzz-23.5.3.tar.gz
Algorithm Hash digest
SHA256 4d6729f6c80c2d250d46ae1e4325cb958b5bc6668d4c3dfa0b9864adc9d0e746
MD5 6b53579388b5db6860e1b2ac522c0f6f
BLAKE2b-256 6bd79fbdcb633678c59e1251bdb3e43ad0b0b0fee14557ae741f7c76eb1f8fa9

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: hypofuzz-23.5.3-py3-none-any.whl
  • Upload date:
  • Size: 35.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for hypofuzz-23.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e7d8dbaca50aa0d328066993cdce323d9b4f4a0fd420ea92a382e32e2383f60a
MD5 ecfa47aa61bb6c0c05b49edb657a991d
BLAKE2b-256 49c8cdceca48d52cdf36ccea6d784e34ea5edb0d545a7c67fc6dae765e282f83

See more details on using hashes here.

Provenance

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