When using the hypothesis library and performing unit testing, how can I see what instances the library is trying on my code?
Example
from hypothesis import given
import hypothesis.strategies as st
@given(st.integers())
def silly_example(some_number):
assert some_number > 0
The question is: how do I print / see the some_number
variable, generated by the library?
See here - either the note
function and --hypothesis-verbosity=verbose
, or the event
function and --hypothesis-show-statistics
should do the trick.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With