mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-29 04:21:03 +08:00
pytest: add short options (#20926)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
- Exit as soon as a test fails or encounters an error:
|
||||
|
||||
`pytest --exitfirst`
|
||||
`pytest {{[-x|--exitfirst]}}`
|
||||
|
||||
- Run tests matching or excluding markers:
|
||||
|
||||
@@ -21,12 +21,12 @@
|
||||
|
||||
- Run until a test failure, continuing from the last failing test:
|
||||
|
||||
`pytest --stepwise`
|
||||
`pytest {{[--sw|--stepwise]}}`
|
||||
|
||||
- Run tests without capturing output:
|
||||
|
||||
`pytest --capture=no`
|
||||
`pytest {{[-s|--capture=no]}}`
|
||||
|
||||
- Run tests with increased [v]erbosity, displaying individual test names:
|
||||
- Run tests with increased verbosity, displaying individual test names:
|
||||
|
||||
`pytest -v`
|
||||
`pytest {{[-v|--verbose]}}`
|
||||
|
||||
Reference in New Issue
Block a user