test-framework
test-framework copied to clipboard
Increasing test case value results in no tests at all
Using the flag -a you can change the number of test cases that should run for each test. The default is 100 tests.
$ dist/build/qc/qc
Utils:
refragment id: [OK, passed 100 tests]
...
Now with increased number of test cases;
dist/build/qc/qc -a 1000
Utils:
refragment id: [OK, passed 1000 tests]
...
However, if I use more than 1000 test cases, test-framework somehow decides to not run any tests at all.
$ dist/build/qc/qc -a 1001
Utils:
refragment id: [Failed]
Arguments exhausted after 0 tests
...
As the comment notes, the arguments are exhausted so it's unable to execute any of the tests.
This is the same issue as batterseapower/test-framework#34 — it seems to mention a different option, but --maximum-generated-tests is the long name of -a.
To sum up a few interesting things we figured there:
- increasing --maximum_unsuitable_generated_tests makes the test pass
- using test-framework 0.7 avoids the issue, but maybe just because unsuitable tests were not counted (it's not clear — see https://github.com/batterseapower/test-framework/issues/34#issuecomment-73359943)
- @s9gf4ult bisected the change down to f03afed662c59478760eb895c6a149359c839a9d.