Closed Xenomega closed 3 months ago
The problem in the above is that a fuzzer error (not a test failure) gets logged and also gets printed out here
Proposed changed here in the latest commit introduces a new error code which is ErrorCodeFuzzerError
. If this error is encountered, then nothing extra is printed in main.go
. It's a little bit hacky so feedback would be appreciated.
The image below differentiates between a "fuzzer error" (first run of ./medusa fuzz
in the screenshot) and a "general error" (second run of ./medusa fuzz
in the screenshot).
If you input a bad command/argument, the error is not displayed. This is because
main.go
never does print it. This fixes that issue.This prints the error if any had occurred. Question for you @anishnaik , do you think this should instead use the global logger? We could do that now or in the future (if it's not a big concern).