This example uses Jazzer version 0.24.0 and shows how you can run it directly from Gradle.
For detailed information on how to use Jazzer, please refer to the Jazzer documentation
You can run Jazzer's fuzz tests as part of Gradle tests in one of the following ways:
- Run a fuzz test in the fuzzing mode.
JAZZER_FUZZ=1 ./gradlew test --tests "org.example.PersonTest.fuzzPerson"
- Run a fuzz test in the regression mode.
./gradlew test --tests "org.example.PersonTest.fuzzPerson"