CmdID

CmdID / Commands

pytest

Run Python tests. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Run tests from specific files

pytest path/to/test_file1.py path/to/test_file2.py ...Identify

Run tests with names matching a specific keyword expression

pytest -k expressionIdentify

Exit as soon as a test fails or encounters an error

pytest --exitfirstIdentify

Run tests matching or excluding markers

pytest -m marker_name1 and not marker_name2Identify

Run until a test failure, continuing from the last failing test

pytest --stepwiseIdentify

Run tests without capturing output

pytest --capture=noIdentify

Run tests with increased verbosity, displaying individual test names

pytest --verboseIdentify