-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add ability to limit tests by test duration rather than the number of test iterations #336
Comments
Should the time limit be in addition to number of tries or replace the number of tries? |
That makes sense, and I have pretty much the same intention: allow stoping the test as soon as the first limit is exhausted. As I started adding my own I'm not sure what to do about it, and it might be that a generic "pass values from the command line" (e.g. via system properties) might be helpful. For instance, what if jqwik picks up |
This would make the most sense as a generic feature for all attributes accepted by |
Well, it is awesome there's |
This will be supported by jqwik 2. So I close the feature request for jqwik 1. |
Is there an issue tracker for jqwik 2? |
Not yet, but there will be. |
Testing Problem
I'm testing database-related integration cases like "create table", "drop table", and the sequence of operations is generated on the fly (see #134), so
@Property(tries=42)
is not suitable for me as I have no idea how much time a single iteration would take.Suggested Solution
Support something like
@Timeout
from JUnit5: https://junit.org/junit5/docs/5.5.1/api/org/junit/jupiter/api/Timeout.htmlThe "test timeout" feature could be implemented via
AfterProperty
+AroundTryHook
, however, having an out-of-the-box timeout would be perfect.See https://www.fuzzingbook.org/html/WhenToStopFuzzing.html, https://docs.gitlab.com/ee/user/application_security/coverage_fuzzing/#duration-of-coverage-guided-fuzz-testing
The text was updated successfully, but these errors were encountered: