Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do we get shrunken test cases? #631

Open
dank-cruise opened this issue Oct 11, 2023 · 1 comment
Open

How do we get shrunken test cases? #631

dank-cruise opened this issue Oct 11, 2023 · 1 comment

Comments

@dank-cruise
Copy link

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 (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?

@pca006132
Copy link

There is a minimizer script in tools directory. In short you have to deal with some undocumented environment variables...

I have a simpler script here: https://github.com/elalish/manifold/blob/ef4df32ba8321d537c92e8a9e4fce7a788f58cbb/minimizer.sh, in case it is useful to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants