-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Open
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement
Description
We now have both the code and CI job to run hypothesis tests.
In this issue I invite everyone to propose ideas: what can we test with it?
Criteria:
- Tests should be suitable for property-based nature of
hypothesis - The action under test should be fast and reliable (since
hypothesiswill produce a lot of cases to tests, we cannot do any slow / network related things) - Strategies for data generation should be rather simple (I think that later we can get to more complex strategies, but for now for the sake of simplicity and maintability I propose not to get too crazy with them)
What else?
Known applications
Property-based tests are great when there are certain patterns:
decodeandencodedumpsandloads
There are also some hidden patterns as (example):
- If
'a' in sthen s.index('a')must return an integer
Existing work
Good examples of exising stuff:
- Existing
hypothesistests intest_zoneinfoby @pganssle - Existing tests in https://github.com/Zac-HD/stdlib-property-tests by @Zac-HD and others
Linked PRs
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement