Create a Fuzz Target

After the initialization is completed (the UI indicates that with a check mark before the item “Initialize Project” in the side view), it is time to create our first fuzz test. To do so we recommend using our “Fuzz This Function” helper. “Fuzz This Function” is a decorator that appears over function definitions and allows you to quickly set up fuzzing for the corresponding function.

With CI Fuzz there are two approaches to creating fuzz targets for C++. We offer a “Fuzz This Function” helper that appears ofer function definitions in your code and creates fuzz targets on click. This easy to use approach is described in the Fuzz this Function subsection. Fuzz This Function

Fuzz targets can also be created manually. With manual fuzz target creation, users have to take care of specifying the required build flags and includes. Manual creation is explained in this section