This example uses the closed source cifuzz plugin version 1.10.0 and Jazzer version 0.23.0, available from the private GitLab package repository at https://gitlab.code-intelligence.com/groups/artifacts/-/packages.
Note: The project can not be build without proper repository setup!
- Add repository credentials to
~/.gradle/gradle.properties
See Publishing Credentials for more options.CodeIntelligenceRepositoryUsername=Trial-User CodeIntelligenceRepositoryPassword=<TOKEN>
- Take a look at existing configuration
- Configuration of build repository in
build.gradle.kts
repositories { maven { name = "CodeIntelligenceRepository" url = uri("https://gitlab.code-intelligence.com/api/v4/projects/89/packages/maven") credentials(PasswordCredentials::class) content { includeGroupByRegex("com\\.code-intelligence.*") } } mavenCentral() }
- Configuration of plugin repository in
settings.gradle.kts
pluginManagement { repositories { maven { name = "CodeIntelligenceRepository" url = uri("https://gitlab.code-intelligence.com/api/v4/projects/89/packages/maven") credentials(PasswordCredentials::class) content { includeGroupByRegex("com\\.code-intelligence.*") } } } }
- Added cifuzz Gradle plugin in
build.gradle.kts
id("com.code-intelligence.cifuzz") version "1.10.0"
- Configuration of build repository in
- Install
cifuzz
2.19.0+
- Execute fuzzing run
cifuzz run org.example.PersonTest::fuzzPerson
- Execute coverage run
cifuzz coverage org.example.PersonTest::fuzzPerson