All apps/pytest

pytest

pytest

Python testing framework for writing and running small to large tests.

Runs as pytest|macOS, Linux, Windows|docs.pytest.org

Command form

ai-draft · 2 tasks · 13 fields

Run Python tests with the common selection, output and failure options. Plugin options and configuration overrides are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui pytest
Run testsExample values, fixed in this page — nothing here reaches a terminal
Basic
Files or directories
any
Name expression (-k)
string
Verbosity
0count
Traceback style
6 choicesenum
TasksEach one presets the form for one job
Run tests
targetskeywordverbosetb
Rerun failures
targetsverbosetbexitfirst
ParametersOnly these flags are editable in the form
Files or directories
Leave empty to collect tests from the current directory.
path · positional 0 · repeatable
Name expression (-k)
Only run tests whose names match this expression.
string
-k
Mark expression (-m)
string
-m
Stop at first failure
boolean
--exitfirst-x
Stop after N failures
integer
--maxfail
Rerun last failures
boolean
--last-failed--lf
Failures first
boolean
--failed-first--ff
Verbosity
count
--verbose-v
Quiet
boolean
--quiet-q
Show print output (no capture)
boolean
-s
Traceback style
enum
--tbautolongshortlinenativeno
Debugger on failure
boolean
--pdb
Collect only
boolean
--collect-only--co
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed pytest against its version. A form that does not match your version is not offered.