Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jab opened this issue Apr 12, 2018 · 2 comments
Labels
enhancement it's not broken, but we want it to be better legibility make errors helpful and Hypothesis grokable

Comments

@jab
Copy link
Contributor

jab commented Apr 12, 2018

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).

@Zac-HD Zac-HD added enhancement it's not broken, but we want it to be better legibility make errors helpful and Hypothesis grokable labels Apr 12, 2018
@Zac-HD
Copy link
Member

Zac-HD commented May 25, 2018

Related to #1238.

@massey101
Copy link
Contributor

Gonna take a look at this.

This was referenced Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement it's not broken, but we want it to be better legibility make errors helpful and Hypothesis grokable
Projects
None yet
Development

No branches or pull requests

3 participants