Reputation: 1387
Im porting some Python code using hypothesis, and trying to keep the sources as close as possible. The python test file has both parameterized and non-parameterized methods. If I mark them all as @Property, the non-parameterized (and so identical) methods get called 1000 times.
Just learning jqwik, so may be missing something easy. If not, ill just break them into two files. Thanks.
Upvotes: 0
Views: 260
Reputation: 5351
For example based tests jqwik has the annotation @Example
, which will run your test method just a single time. Use it for your non-parameterized tests.
Upvotes: 1