-
Notifications
You must be signed in to change notification settings - Fork 115
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
testAllMethods
option for the fuzz
goal would be nice to have
#265
Comments
Interesting. This isn't something that I've seen anyone need before because fuzzing is typically run with user-defined entry points. But, I see the use case if using JQF to fuzz all methods in a test suite / test class for a limited time each. I can add this to my TODO list. It will probably be easiest to implement using the existing |
@rohanpadhye maybe you can also do the same with the |
Doing this for all classes is trickier because it is not trivial to find all test classes unless they are explicitly loaded. JUnit has some functionality to scan the classpath for classes named Having a scanner that only searches for fuzz entry points but not other JUnit tests will require cloning a lot of low-level functionality from JUnit, which I'd like to avoid if possible. It might be easier to achieve the goal of testing everything by just relying on the surefire plugin and using some wildcards / naming scheme to filter tests to only fuzzable ones and not basic unit tests. However, today this will run the |
@rohanpadhye how about adding another argument to the plugin:
Then, you simply check the |
I have a class with a number of methods annotated with
@Fuzz
. Currently, I have to create multiple<execution>
elements for the jqf-maven-plugin, one per each method. Would be more convenient to havetestAllMethods
property, which would simply instruct the plugin to run all methods, which are@Fuzz
-annotated.The text was updated successfully, but these errors were encountered: