CLI.PY(1)
π CLI.PY π
okay bestie, gather round, because this is the manual page for cli.py from the User Commands manual, and it's genuinely iconic. it's a BDD test engine based on Vows.js and it's about to be your whole personality. π
β¨ NAME β¨
cli.py β BDD test engine based on Vows.js π¦
πΈ DESCRIPTION πΈ
so the vibe is: you run it, and it runs your tests. that's it, that's the dream. here's the usage, no cap:
usage: cli.py [-h] [-p PATTERN] [-e EXCLUDE]
[-i INCLUDE] [-c] [-l PACKAGE] [-o FILE] [-t NUMBER] [-r FILE]
[-x] [-f FILE] [--profile] [--profile-threshold NUM] [--template]
[--no-color] [--progress] [--version] [--capture-output] [-v]
[path]
Run PyVows tests. periodt. π
π«Ά positional arguments: π«Ά
pathβ the directory to go looking for vows in, recursively (it's giving detective energy π). if you hand it a file instead of a directory, then that file is the target for vows. (default:'.'). yes queen, it defaults to the current directory.
β options: β
-h,--helpβ shows this help message and then dips out. bye bestie π-p PATTERN,--pattern PATTERNβ the pattern your vows files have to match. (default:'*_vows.py')-e EXCLUDE,--exclude EXCLUDEβ excludes tests and contexts that match the regex-patternEXCLUDE. β οΈ mutually exclusive with--includeβ you cannot have both, pick a lane.-i INCLUDE,--include INCLUDEβ includes only tests and contexts that match the regexpatternINCLUDE. β οΈ mutually exclusive with--excludeβ same deal, one or the other, no cap.--no-colorβ turns off the colorized output. (default:False) π the aesthetic loss fr--progressβ shows progress ticks while testing is happening. (default:False)--versionβ shows the program's version number and then exits. iconic.--capture-outputβ capturesstdoutandstderrwhile tests are executing (default:False)-vβ verbosity. you can specify it many times to keep cranking the verbosity up (default:-vv). the way that more-v= more talking, we love a chatty queen π£οΈ
π§ Test Coverage: π§
-c,--coverβ shows you the code coverage of your tests. (default:False)-l PACKAGE,--cover-package PACKAGEβ verifies coverage ofPACKAGE. may be specified many times. (default: all packages)-o FILE,--cover-omit FILEβ excludesFILEfrom coverage. may be specified many times. (default: no files)-t NUMBER,--cover-threshold NUMBERβ if coverage drops belowNUMBER, that's considered a failure. (default:80.0)-r FILE,--cover-report FILEβ stores the coverage report asFILE. (default:None)
π XUnit: π
-x,--xunit-outputβ enables XUnit output. (default:False)-f FILE,--xunit-file FILEβ stores the XUnit output asFILE. (default:'pyvows.xml')
π₯ Profiling: π₯
--profileβ prints the 10 slowest topics. (default:False)--profile-threshold NUMβ tests that take longer thanNUMseconds get labeled slow. (default:0.1)
π Utility: π
--templateβ prints a PyVows test file template. heads up: this disables testing. (Disables testing)
π reminder bestie:--excludeand--includeare mutually exclusive, so don't try to run both and then act surprised. the manpage said what it said.
and that's the whole page, you ate it, no crumbs. π this was cli.py version 3.0.0, from December 2022 β slay, go write some vows, main character energy only. β¨ππ
π¦ where this page comes from
- debian bookworm: python3-pyvows 3.0.0-4 Β· MIT
- debian trixie: python3-pyvows 3.0.0-4 Β· MIT
- ubuntu noble: python3-pyvows 3.0.0-4 Β· MIT
- ubuntu questing: python3-pyvows 3.0.0-4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms