Fuzz Testing your Project
Make fuzz tests to find uncover hard to find bugs in your code
Overview
Fuzz testing (or fuzzing) is a way to find test cases that break your code programmatically using instrumented binaries. This can extremely useful for complex parsers or protocols which are expected to cope with a large variety of inputs.
Recommended Workflow
To get started with fuzzing your project you will need to do the following:
- Install AFL on your machine
- Install an AFL variant of the OCaml compiler into a new switch
- Install crowbar and bun using opam
This Github repository and the accompanying article found in the resource tag are a great place to start.