CLI.PY(1)

πŸ“¦
version 3.0.0 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

πŸ’– 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-pattern EXCLUDE. ⚠️ mutually exclusive with --include β€” you cannot have both, pick a lane.
  • -i INCLUDE, --include INCLUDE β€” includes only tests and contexts that match the regexpattern INCLUDE. ⚠️ 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 β€” captures stdout and stderr while 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 of PACKAGE. may be specified many times. (default: all packages)
  • -o FILE, --cover-omit FILE β€” excludes FILE from coverage. may be specified many times. (default: no files)
  • -t NUMBER, --cover-threshold NUMBER β€” if coverage drops below NUMBER, that's considered a failure. (default: 80.0)
  • -r FILE, --cover-report FILE β€” stores the coverage report as FILE. (default: None)

πŸ’œ XUnit: πŸ’œ

  • -x, --xunit-output β€” enables XUnit output. (default: False)
  • -f FILE, --xunit-file FILE β€” stores the XUnit output as FILE. (default: 'pyvows.xml')

πŸ”₯ Profiling: πŸ”₯

  • --profile β€” prints the 10 slowest topics. (default: False)
  • --profile-threshold NUM β€” tests that take longer than NUM seconds get labeled slow. (default: 0.1)

🌈 Utility: 🌈

  • --template β€” prints a PyVows test file template. heads up: this disables testing. (Disables testing)

πŸ’– reminder bestie: --exclude and --include are 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