-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
pytest --version should also display information about installed plugins #8393
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
Comments
Ooops, I kinda deserve a RTFM on that..... It is the first time when I see that --version is used like that, maybe I would have seen more logic on enabling it via |
That was the original idea, but other tools (including Python) follow the same approach: #3692 (comment) |
I did not see this documented on https://clig.dev/ but it would not be a bad idea to make a pull-request to improve it and to mention that displaying version twice could display more information. That guide is very useful for anyone writing CLI tools. |
At this moment
pytest --version
does only output one line with its current version, missing to mention other essential informations which do affect its execution: installed plugins and python version.Based on other tools that support plugins I dare to suggest extending the display to something similar with tox output:
I do not have a strong opinion regarding if those paths should be printed, but plugins and their versions are essential.
Also it would be wise to assure that the first line still starts with
pytest <version>
, so it would be unlikely to break parsing of version, if anyone did this. I mention this because recently Ansible managed to break even this, by adding some other bit between tool name and the version... :pThe text was updated successfully, but these errors were encountered: