I'm new to hypothesis and tried this simple code:
@settings(max_examples=5)
@given(st.integers(), st.integers(), st.integers(), st.integers())
def test_foo(a,b,c,d):
print(a,b,c,d)
As you can see, test_foo receives 4 different integers. I run foo 5 times This is the print results:
0 0 0 0
0 0 0 0
-2070532028 -5212 -20927 14943
0 0 0 0
0 0 0 0
4 of the 5 times this test ran, it ran with 4 zeros. This isn't accidental, Every time I run test_foo
I get the same results: 3-4 runs with 4 zeros and 1-2 runs with non zeros
How can I get more variant parameters?