-
-
Notifications
You must be signed in to change notification settings - Fork 26.1k
Open
Labels
HardHard level of difficultyHard level of difficultymodule:test-suiteeverything related to our testseverything related to our tests
Description
It may be beneficial to add hypothesis testing to some of our tests. Hypothesis testing allows for us to verify mathematical properties such as commutativity:
from hypothesis import given
import hypothesis.strategies as st
@given(st.integers(), st.integers())
def test_ints_are_commutative(x, y):
assert x + y == y + x
This allows the CI to look for edge cases for us. This would be useful testing metrics. https://hypothesis.readthedocs.io/en/latest/
dmyersturnbull, Zac-HD and agriyakhetarpal
Metadata
Metadata
Assignees
Labels
HardHard level of difficultyHard level of difficultymodule:test-suiteeverything related to our testseverything related to our tests