-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run all fuzz tests with a single command? and is mvn jqf:fuzz coverage guided? #176
Comments
If coverage report is 0, then it means something is wrong. Classes are not being instrumented for coverage. Try out the tutorials on the wiki (links from README) or the standalone example to see what coverage stats should look like. For running all tests annotated with If you really the need ability to run all |
Thanks for the response. I added some code and coverage went from 0.00 to 0.01%. So, it seems to work. But I couldn't understand what exactly are the values in the report like: Cycles completed, Queue size, Total coverage, Valid coverage etc. Is there a documentation mentioning the meaning of these values. That would be really helpful. Also, I tried fuzzing by including mocks and it works seamlessly which is what I was looking for :) I would like to propose these additions which will be a great value add:
Thoughts? |
Thanks for the feedback! A lot of the terminology is borrowed from AFL, but I've been meaning to improve documentation in JQF or use simpler terms (#138 has been open for a long time). I will try to add support for running multiple fuzzing targets in one invocation of the Maven plugin. For |
Going back to the original design decisions of the Maven plugin, here are my thoughts. Currently, you can fuzz all the methods in your application by simply running I can't immediately think of a good use case for running coverage-guided fuzzing on all test targets, because typically the coverage guidance only pays off when running for a long time, e.g. several hours. At this time scale, the overhead of having to re-run Maven for the next fuzzing target is going to be a very tiny fraction of the overall cost of fuzzing. Are you running coverage-guided fuzzing for only a few seconds at a time? |
Hi,
I was thinking of integrating with a spring service which has many files. Writing fuzz tests on multiple files, and running mvn jqf:fuzz command individually for each fuzz test seems to be time taking and lengthy, is there a way to run a command which automatically scan for all @fuzz targets which are in classes annotated with @RunWith(JQF.class)?
Also, running with mvn jqf:fuzz report coverage of 0.00%. Does it mean running with mvn jqf:fuzz command is not coverage guided fuzzing and inputs are not generated using feedback from previous test inputs?
The text was updated successfully, but these errors were encountered: