Skip to content
Snippets Groups Projects
Unverified Commit a82405a4 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone Committed by GitHub
Browse files

Merge pull request #96 from PrivateStorageio/95.disable-some-hypothesis-checks

Make the default profile disable too_slow and the deadline
parents 3d140819 462581ff
Branches
No related tags found
No related merge requests found
...@@ -28,24 +28,36 @@ def _configure_hypothesis(): ...@@ -28,24 +28,36 @@ def _configure_hypothesis():
settings, settings,
) )
settings.register_profile( base = dict(
"ci",
suppress_health_check=[ suppress_health_check=[
# CPU resources available to CI builds typically varies # CPU resources available to builds typically varies significantly
# significantly from run to run making it difficult to determine # from run to run making it difficult to determine if "too slow"
# if "too slow" data generation is a result of the code or the # data generation is a result of the code or the execution
# execution environment. Prevent these checks from # environment. Prevent these checks from (intermittently) failing
# (intermittently) failing tests that are otherwise fine. # tests that are otherwise fine.
HealthCheck.too_slow, HealthCheck.too_slow,
], ],
# With the same reasoning, disable the test deadline. # With the same reasoning, disable the test deadline.
deadline=None, deadline=None,
) )
settings.register_profile(
"default",
**base
)
settings.register_profile(
"ci",
# Make CI runs a little more aggressive in amount of coverage they try
# to provide.
max_examples=200,
**base
)
settings.register_profile( settings.register_profile(
"big", "big",
max_examples=10000, max_examples=10000,
deadline=None, **base
) )
profile_name = environ.get("ZKAPAUTHORIZER_HYPOTHESIS_PROFILE", "default") profile_name = environ.get("ZKAPAUTHORIZER_HYPOTHESIS_PROFILE", "default")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment