Files
tty7/assets/completions/pytest.json
T
l0ng-ai 22e1ab1694 tty7: a GPU-rendered, daemon-backed terminal in pure Rust
tty7 is split into two Rust processes: a persistent daemon that owns the
shells and a GPU-rendered client that talks to it over a local socket.
Because the shells live in the daemon, quitting and reopening the app
leaves the session intact — detach and reattach, no tmux required.

- Persistent sessions — the daemon holds the PTYs and child processes, so
  closing a window or swapping in a new build never takes a shell down.
- Performance — an 11 MB `cat` completes in 95 ms and DOOM-fire renders at
  888 fps; the daemon drains the PTY at device speed off the render path.
- Shell-aware — new tabs and splits open in the current working directory;
  zsh, bash, fish, and PowerShell are set up automatically.
- Enhanced prompt — inline completion, syntax highlighting, history, and
  in-terminal search, with rich flag/subcommand signatures for common tools.
- Tabs, resizable splits, a command palette, click-to-open links, desktop
  notifications, eight themes, and CJK/IME input.

Native builds for macOS, Windows, and Linux.
Built on Zed's gpui and Alacritty's VT core.
2026-07-06 21:54:27 +08:00

1 line
22 KiB
JSON

{"description":null,"options":[{"names":["--assert"],"description":"Control assertion debugging tools. 'plain' performs no assertion debugging. 'rewrite' (the default) rewrites assert statements in test modules on import to provide assert expression information","args":[{"name":"Mode","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["plain"],"description":null},{"names":["rewrite"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--basetemp"],"description":"Base temporary directory for this test run.(warning: this directory is removed if it exists)","args":[{"name":"Directory","description":null,"optional":false,"variadic":false,"template":["folders"],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["-c"],"description":"Load configuration from `file` instead of trying to locate one of the implicit configuration files","args":[{"name":"File","description":null,"optional":false,"variadic":false,"template":["filepaths"],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--cache-clear"],"description":"Remove all cache contents at start of test run","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--cache-show"],"description":"Show cache contents, don't perform collection or tests. Optional argument: glob (default: '*')","args":[{"name":"Glob","description":null,"optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--capture"],"description":"Per-test capturing method","args":[{"name":"Method","description":"One of fd|sys|no|tee-sys","optional":false,"variadic":false,"template":[],"suggestions":[{"names":["fd"],"description":null},{"names":["sys"],"description":null},{"names":["no"],"description":null},{"names":["tee-sys"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--code-highlight"],"description":"Whether code should be highlighted (only if --color is also enabled)","args":[{"name":"Highlight","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["yes"],"description":null},{"names":["no"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--co","--collect-only"],"description":"Only collect tests, don't execute them","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--collect-in-virtualenv"],"description":"Don't ignore tests in a local virtualenv directory","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--color"],"description":"Color terminal output","args":[{"name":"Color","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["yes"],"description":null},{"names":["no"],"description":null},{"names":["auto"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--confcutdir"],"description":"Only load conftest.py's relative to specified dir","args":[{"name":"Dir","description":null,"optional":false,"variadic":false,"template":["folders"],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--continue-on-collection-errors"],"description":"Force test execution even if collection errors occur","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--debug"],"description":"Store internal tracing debug information in this log file. This file is opened with 'w' and truncated as a result, care advised. Defaults to 'pytestdebug.log'","args":[{"name":"Debug File Name","description":null,"optional":true,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--durations"],"description":"Show N slowest setup/test durations (N=0 for all)","args":[{"name":"N","description":"(N=0 for all)","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--durations-min"],"description":"Minimal duration in seconds for inclusion in slowest list","args":[{"name":"N","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--deselect"],"description":"Deselect item (via node id prefix) during collection (multi-allowed)","args":[{"name":"nodeid_prefix","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":true,"hidden":false},{"names":["--disable-warnings","--disable-pytest-warnings"],"description":"Disable warnings summary","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--doctest-continue-on-failure"],"description":"For a given doctest, continue to run after the first failure","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--doctest-ignore-import-errors"],"description":"Ignore doctest ImportErrors","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--doctest-modules"],"description":"Run doctests in all .py modules","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--doctest-report"],"description":"Choose another output format for diffs on doctest failure","args":[{"name":"Output format","description":"None,cdiff,ndiff,udiff,only_first_failure","optional":false,"variadic":false,"template":[],"suggestions":[{"names":["none"],"description":null},{"names":["cdiff"],"description":null},{"names":["ndiff"],"description":null},{"names":["udiff"],"description":null},{"names":["only_first_failure"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--doctest-glob"],"description":"Doctests file matching pattern, default: test*.txt","args":[{"name":"Pattern","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--exitfirst","-x"],"description":"Exit instantly on first error or failed test","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--failed-first","--ff"],"description":"Run all tests, but run the last failures first","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--fixtures"],"description":"Shows builtin and custom fixtures. Note that this command omits fixtures with leading _ unless the -v option is added","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--fixtures-per-test"],"description":"Show fixtures per test","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--full-trace"],"description":"Don't cut any tracebacks (default is to cut)","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--help","-h"],"description":"This shows help on command line and config-line options","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--ignore"],"description":"Ignore path during collection (multi-allowed)","args":[{"name":"Path","description":null,"optional":false,"variadic":false,"template":["filepaths"],"suggestions":[],"generators":[]}],"required":false,"repeatable":true,"hidden":false},{"names":["--ignore-glob"],"description":"Ignore path pattern during collection (multi-allowed)","args":[{"name":"Path","description":null,"optional":false,"variadic":false,"template":["filepaths"],"suggestions":[],"generators":[]}],"required":false,"repeatable":true,"hidden":false},{"names":["--import-mode"],"description":"Prepend/append to sys.path when importing test modules and conftest files, default is to prepend","args":[{"name":"Mode","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["prepend"],"description":null},{"names":["append"],"description":null},{"names":["importlib"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--junit-xml"],"description":"Create junit-xml style report file at given path","args":[{"name":"Path","description":null,"optional":false,"variadic":false,"template":["filepaths","folders"],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--junit-prefix"],"description":"Prepend prefix to classnames in junit-xml output","args":[{"name":"Str","description":"String to prepend","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["-k"],"description":"Only run tests which match the given substring expression. An expression is a python evaluatable expression where all names are substring-matched against test names and their parent classes. Example: -k 'test_method or test_other' matches all test functions and classes whose name contains 'test_method' or 'test_other', while -k 'not test_method' matches those that don't contain 'test_method' in their names. -k 'not test_method and not test_other' will eliminate the matches. Additionally keywords are matched to classes and functions containing extra names in their 'extra_keyword_matches' set, as well as functions which have names assigned directly to them. The matching is case- insensitive","args":[{"name":"Expression","description":"Ex: 'test_method or test_other'","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--keep-duplicates"],"description":"Keep duplicate tests","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--showlocals","-l"],"description":"Show locals in tracebacks (disabled by default)","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--last-failed-no-failures","--lfnf"],"description":"Which tests to run with no previously (known) failures","args":[{"name":"Tests","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["all"],"description":null},{"names":["none"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--last-failed","--lf"],"description":"Rerun only the tests that failed at the last run (or all if none failed)","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--log-auto-indent"],"description":"Auto-indent multiline messages passed to the logging module. Accepts true|on, false|off or an integer","args":[{"name":"Log Auto Indent Setting","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["true"],"description":null},{"names":["false"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--log-cli-level"],"description":"Cli logging level","args":[{"name":"Log CLI Level","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["CRITICAL"],"description":null},{"names":["ERROR"],"description":null},{"names":["WARNING"],"description":null},{"names":["INFO"],"description":null},{"names":["DEBUG"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--log-cli-format"],"description":"Log format as used by the logging module","args":[{"name":"Log CLI Format","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--log-cli-date-format"],"description":"Log date format as used by the logging module","args":[{"name":"Log CLI Date Format","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--log-date-format"],"description":"Log date format as used by the logging module","args":[{"name":"Log Date Format","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--log-format"],"description":"Log format as used by the logging module","args":[{"name":"Log Format","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--log-file"],"description":"Path to a file where logging will be written to","args":[{"name":"Log File Path","description":null,"optional":false,"variadic":false,"template":["filepaths"],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--log-file-level"],"description":"Log file logging level","args":[{"name":"Log File Level","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["CRITICAL"],"description":null},{"names":["ERROR"],"description":null},{"names":["WARNING"],"description":null},{"names":["INFO"],"description":null},{"names":["DEBUG"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--log-file-date-format"],"description":"Log date format as used by the logging module","args":[{"name":"Log File Date Format","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--log-file-format"],"description":"Log format as used by the logging module","args":[{"name":"Log File Format","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--log-level"],"description":"Level of messages to catch/display. Not set by default, so it depends on the root/parent log handler's effective level, where it is `WARNING` by default","args":[{"name":"Level","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["CRITICAL"],"description":null},{"names":["ERROR"],"description":null},{"names":["WARNING"],"description":null},{"names":["INFO"],"description":null},{"names":["DEBUG"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["-m"],"description":"Only run tests matching given mark expression","args":[{"name":"Mark Expression","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--markers"],"description":"Show markers (builtin, plugin and per-project ones)","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--maxfail"],"description":"Exit after first num failures or errors","args":[{"name":"num","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--new-first","--nf"],"description":"Run tests from new files first, then the rest of the tests sorted by file mtime","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--noconftest"],"description":"Don't load any conftest.py files","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--no-header"],"description":"Disable header","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--no-summary"],"description":"Disable summary","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--override-ini","-o"],"description":"Override ini option with `option=value` style`","args":[{"name":"Override INI","description":"Ex: `-o xfail_strict=True -o cache_dir=cache","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["-p"],"description":"Early-load given plugin module name or entry point (multi-allowed)","args":[{"name":"Plugin name","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":true,"hidden":false},{"names":["--pastebin"],"description":"Send failed|all info to bpaste.net pastebin service","args":[{"name":"mode","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["failed"],"description":null},{"names":["all"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--pdb"],"description":"Start the interactive Python debugger on errors or KeyboardInterrupt","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--pdbcls"],"description":"Specify a custom interactive Python debugger for use with --pdb","args":[{"name":"modulename:classname","description":"Ex: --pdbcls=IPython.terminal.debugger:TerminalPdb","optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--pyargs"],"description":"Try to interpret all arguments as python packages","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--quiet","-q"],"description":"Decrease verbosity","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-r"],"description":"Show extra test summary info as specified by chars: (f)ailed, (E)rror, (s)kipped, (x)failed, (X)passed, (p)assed, (P)assed with output, (a)ll except passed (p/P), or (A)ll. (w)arnings are enabled by default (see --disable-warnings), 'N' can be used to reset the list. (default: 'fE')","args":[{"name":"chars","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["a"],"description":null},{"names":["A"],"description":null},{"names":["E"],"description":null},{"names":["f"],"description":null},{"names":["N"],"description":null},{"names":["p"],"description":null},{"names":["P"],"description":null},{"names":["s"],"description":null},{"names":["w"],"description":null},{"names":["x"],"description":null},{"names":["X"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--rootdir"],"description":"Define root directory for tests. Can be relative path: 'root_dir', './root_dir', 'root_dir/another_dir/'; absolute path: '/home/user/root_dir'; path with variables:'$HOME/root_dir'","args":[{"name":"Root Dir","description":null,"optional":false,"variadic":false,"template":["folders"],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--runxfail"],"description":"Report the results of xfail tests as if they were not marked","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["-s"],"description":"Shortcut for --capture=no","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--setup-only"],"description":"Only setup fixtures, do not execute tests","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--setup-show"],"description":"Show setup of fixtures while executing tests","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--setup-plan"],"description":"Show what fixtures and tests would be executed but don't execute anything","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--show-capture"],"description":"Controls how captured stdout/stderr/log is shown on failed tests","args":[{"name":"Capture method","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["no"],"description":null},{"names":["stdout"],"description":null},{"names":["stderr"],"description":null},{"names":["log"],"description":null},{"names":["all"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--stepwise","--sw"],"description":"Exit on test failure and continue from last failing test next time","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--stepwise-skip","--sw-skip"],"description":"Ignore the first failing test but stop on the next failing test","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--strict"],"description":"Alias to --strict-markers","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--strict-config"],"description":"Any warnings encountered while parsing the `pytest` section of the configuration file raise errors","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--strict-markers"],"description":"Markers not registered in the `markers` section of the configuration file raise errors","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--tb"],"description":"Traceback print mode","args":[{"name":"Traceback print mode","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[{"names":["auto"],"description":null},{"names":["long"],"description":null},{"names":["short"],"description":null},{"names":["line"],"description":null},{"names":["native"],"description":null},{"names":["no"],"description":null}],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--trace"],"description":"Immediately break when running each test","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--trace-config"],"description":"Trace considerations of conftest.py files","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--verbose","-v"],"description":"Increase verbosity","args":[],"required":false,"repeatable":true,"hidden":false},{"names":["--verbosity"],"description":"Set verbosity. Default is 0","args":[{"name":"Verbosity level","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false},{"names":["--version","-V"],"description":"Display pytest version and information about plugins. When given twice, also display information about plugins","args":[],"required":false,"repeatable":false,"hidden":false},{"names":["--pythonwarnings","-W"],"description":"Set which warnings to report, see -W option of python itself","args":[{"name":"Warnings to report","description":null,"optional":false,"variadic":false,"template":[],"suggestions":[],"generators":[]}],"required":false,"repeatable":false,"hidden":false}],"args":[{"name":"File or Directory","description":"The test file or directory you want to run pytest on. If omitted, pytest will run all of the files of the form test_*.py or *_test.py in the current directory and its subdirectories","optional":true,"variadic":false,"template":["filepaths","folders"],"suggestions":[],"generators":[]}],"subcommands":[],"name":"pytest"}