-
Notifications
You must be signed in to change notification settings - Fork 591
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
Add a CLI option for verbosity to the pytest plugin #1238
Comments
Hi Zac. I think I would be interested in helping out with this issue. I presume the deprecated code in _settings.py would need removed? However, I am new to this project and not very familiar with how the Verbosity class is used. Do the class methods need to be retained? Thanks in advance! |
Awesome! We (and I) are always delighted to meet new contributors 😄
We'll actually keep it around for a while - Semantic Versioning means that it will not be an error before Hypothesis 4.0 (later this year), and we also have a stability policy that says we should wait six months before removing a deprecated feature, which might push the final removal to 5.0. That can feel like a very long time as a dev, but it's great as a user!
Exactly right! I linked to
|
Good to know about the semantic versioning policy used in this project. I will leave the code in _settings.py untouched. Thanks for the advice too, I will look over the documentation guide before making my contribution. I will probably need to brush up on github real quick too, haha.
Cool! Yes this part appears pretty straightforward. I would not be opposed to writing some documentation. If I understand correctly, the available parameters for this option for this are: A few quick questions.
|
Valid options for the setting are the members of the Some docs on verbosity here, though having found them they're incomplete (also controls debug logging, deprecation warnings, etc.). I suggest linking to the settings page instead of re-describing the behaviour of each option, and I'll fix that end! Yes, use There should not be a default option - instead, treat it like |
I'm having a look at this one @ pyconAU sprintday |
Here's my diff: got to head off but will keep working on this over the next few days. |
@BexDunn - how is this going? No pressure, just let me know if I can help 😄 |
@Zac-HD tonight is the first time I've actually managed to sit down and check this issue, sorry! |
No worries! Ping me if you want a review or some tips on how to test this; if I don't hear anything I'll assume you just want to puzzle it out yourself 😄 (though if the issue is inactive for more than a week someone else might finish it (and credit you) - so check in occasionally if you want to do it all yourself!) |
The
HYPOTHESIS_VERBOSITY_LEVEL
environment variable is now deprecated (from #1211). An easy way to control verbosity is still useful though, so we would like to support this as a command-line flag.This would be implemented in
hypothesis.extra.pytestplugin
, similarly to the deprecated version here. The new--hypothesis-verbosity
option should be applied after loading the profile specified by--hypothesis-profile
(if given).Finally, the new option should be listed in
docs/details.rst
, including that the verbosity option is applied after loading a profile.If you would like to work on this issue, feel free to comment and I will help you get started!
The text was updated successfully, but these errors were encountered: