Hypothesis: [Pytest integration] Log the settings and profile name that are globally in effect (or make this easier for users)

Created on 12 Apr 2018  路  2Comments  路  Source: HypothesisWorks/hypothesis

When I run my test suite using pytest, other pytest plugins in use such as pytest-benchmark helpfully log the settings that they have globally in effect:

platform darwin -- Python 3.6.5, pytest-3.5.0, py-1.5.3, pluggy-0.6.0 -- /usr/local/opt/python/bin/python3.6
cachedir: .pytest_cache
benchmark: 3.1.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
...

Can Hypothesis do something similar, or at least make it easier for users to do this? Otherwise dealing with captured output in pytest can be tricky and annoying, and there's also no public API for querying for the currently-active profile (only the private hypothesis.settings._current_profile).

enhancement legibility

Most helpful comment

Gonna take a look at this.

All 2 comments

Related to #1238.

Gonna take a look at this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

coriolinus picture coriolinus  路  7Comments

sobolevn picture sobolevn  路  8Comments

bleakley picture bleakley  路  3Comments

whatevergeek picture whatevergeek  路  3Comments

thedrow picture thedrow  路  3Comments