google / google/fuzztest

How do we get shrunken test cases?

Open
#631 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.1k
Forks
137
Avg merge
3d 6h
Merged PRs (30d)
22

Description

First of all, great project, I love it! It's super useful. Thanks for sharing it with the world.

I notice that FuzzTest has a [concept of shrinking](https://github.com/search?q=repo%3Agoogle%2Ffuzztest%20shrink&type=code) (as many property-based testing libraries and fuzzing libraries do). How do I use this? I've created a fuzztest. I've created Domains for my code under test, and fuzztest has found bugs in my code, but it won't shrink the failing stimulus. It's obviously harder to root cause my errors when fuzztest found the error using a complex stimulus, so how do I get fuzztest to shrink when an error is found?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.