mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 02:55:42 +00:00
Update cheatsheets
This commit is contained in:
10
tldr/pytest
10
tldr/pytest
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Exit as soon as a test fails or encounters an error:
|
||||
|
||||
`pytest --exitfirst`
|
||||
`pytest {{[-x|--exitfirst]}}`
|
||||
|
||||
- Run tests matching or excluding markers:
|
||||
|
||||
@@ -26,12 +26,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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