pytest
Run Python tests. tldr-pages
On several platforms
Several platforms
Run tests from specific files
pytest path/to/test_file1.py path/to/test_file2.py ...IdentifyRun tests with names matching a specific keyword expression
pytest -k expressionIdentifyExit as soon as a test fails or encounters an error
pytest --exitfirstIdentifyRun tests matching or excluding markers
pytest -m marker_name1 and not marker_name2IdentifyRun until a test failure, continuing from the last failing test
pytest --stepwiseIdentifyRun tests without capturing output
pytest --capture=noIdentifyRun tests with increased verbosity, displaying individual test names
pytest --verboseIdentify