question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pytest --collect-only needs a one char shortcut command

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
blueyedcommented, Sep 13, 2019

I find myself needing to run --collect-only very often and that cli argument is a very long to type one.

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… 😃)

1reaction
nicoddemuscommented, Sep 13, 2019
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found