How do I get coverage data from a fuzz test?
I have implemented a fuzz test in Visual Studio using /fsanitize=fuzzer /fsanitize=address.
Since the LLVM fuzzing engine uses coverage to direct the fuzz-testing, it should be able to output this as an artefact of the test run.
When I did this in a previous project using a clang build, I was able to get coverage data out using llvm-cov. This doesn't seem to work with this project built with Visual Studio/msvc++.
Since this is for automated testing, I really need a method that works from the command line, which I can wrap in a script.
How can I generate a coverage report from the fuzzer in Visual Studio?