pytest --collect-only needs a one char shortcut command
See original GitHub issueI find myself needing to run --collect-only
very often and that cli argument is a very long to type one.
I do think that it would be great to allocate a character for it, not sure which one yet. Please use up/down thumbs to vote if you would find it useful or not and eventually proposing which char should be used.
Clearly this is a change very easy to implement but first I want to see if others would find it useful or not.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:8 (7 by maintainers)
Top Results From Across the Web
API Reference — pytest documentation
Register one or more module names to be rewritten on import. This function will make sure that this module or all modules inside...
Read more >pytest Documentation - Read the Docs
1.1.1 Install pytest pytest requires: Python 3.7+ or PyPy3. 1. Run the following command in your command line: pip install -U pytest.
Read more >pytest - Jupyter Notebooks Gallery
Pytest important command line options · -v (increase verbosity.) · -q (decrease verbosity) · -s · --collect-only · Launching PDB (Python Debugger) on ......
Read more >Historical errata for Python Testing with pytest
PDF Pg Type Fixed on
67 ERROR 2017‑06‑07
12 TYPO 2017‑06‑07
2 TYPO 2017‑06‑07
Read more >Command Line Options - SeleniumBase Docs
A complete framework for end-to-end testing with Python, pytest, behave-BDD, and WebDriver.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just out of curiosity: Why? (i.e. what’s your use case?)
+0 for
--co
.But in general you can easily also have an alias “alias pco=‘pytest --collect-only’” - (or “alias pco='p --collect-only” if you have a shortcut for pytest already… 😃)
I like
--co
, and it doesn’t seem to be used by any plugins as far as I can search:https://github.com/search?utf8=✓&q=--co+language%3APython+pytest+language%3APython+language%3APython&type=Code&ref=advsearch&l=Python&l=Python