Skip to content

Add Support for libFuzzer Test Target in Generated Test Directory #135

Open
@avitase

Description

@avitase

I would like to suggest adding support for libFuzzer in the generated test directory. While the current template includes dummy unit tests without relying on a specific testing framework, integrating a fuzz test target would be a valuable addition for projects that require robustness testing and input validation.

Feature request

  • Add an optional CMake target for fuzz testing using libFuzzer
  • The target should be conditionally enabled if the compiler supports fuzzing (-fsanitize=fuzzer,address for Clang and GCC (?)).
  • Include a basic fuzzing example (e.g., fuzzing a simple string-processing function).
  • Ensure that the fuzz test target integrates smoothly with existing CMake configurations and CI pipelines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions