What is the minimum amount of pytest's CLI that should be supported by integrating editors? #8506
-
Slightly odd question, but what I'm wondering is if an editor were to integrate with pytest, what is the minimal amount of pytest's CLI would have to be supported? If we were to tell users that they were expected to use Assume we know the directory that is open in the editor. Would specifying a different working directory be needed? What about the location of a Or a slightly different phrasing is what is the minimal amount of custom UI an editor would need to provide to run pytest (assume #8458 takes care of discovery/execution UX; this is about running pytest)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hey @brettcannon
As a user, I kind expected to be able to pass any command-line to pytest when executing it inside my editor/IDE. For example, PyCharm has a free form field "Additional arguments" where I can pass any flag I want. Many flags require command-line arguments which are not expected to be written "permanently" in a the configuration file, but should be used on occasion, for example
I'm might be biased, but both PyCharm and PyDev (IIRC about the latter) execute pytest from the directory of the current file, and let pytest itself find the configuration file. I particularly like that default.
TBH I think an "Additional parameters" is all that's needed, but I might be having tunnel vision because I'm used to having that available to me in PyCharm. |
Beta Was this translation helpful? Give feedback.
Hey @brettcannon
As a user, I kind expected to be able to pass any command-line to pytest when executing it inside my editor/IDE. For example, PyCharm has a free form field "Additional arguments" where I can pass any flag I want.
Many flags require command-line arguments which are not expected to be written "permanently" in a the configuration file, but should be used on occasion, for example
--last-failed
or--stepwise
. The same is true for external plugins.