tox(1)

πŸ’– NAME πŸ’–

okay so bestie, welcome to tox(1) β€” it's a User Commands page (yes, that's the manual section, we're fancy like that) and it's all about tox, aka virtualenv-based automation of test activities. she's the girl who runs your tests so you don't have to do it by hand seventeen times. πŸŽ€


✨ SYNOPSIS ✨

tox [options] [run | run-parallel | depends | man | list | devenv |
schema | config | quickstart | exec | legacy] [command-options]

that's the whole vibe. options, then a command, then that command's own options. slay.


πŸ¦‹ DESCRIPTION πŸ¦‹

tox aims to automate and standardize testing in Python. she's part of a bigger vision β€” easing the packaging, testing and release process of Python software. it's giving main character energy for your whole release pipeline, honestly. πŸ’…

tox creates virtual environments for multiple Python versions, installs project dependencies, and runs tests in each environment. It supports parallel execution, custom test commands, and extensive configuration. so like. she makes the envs, she installs the deps, she runs the tests, she does it in parallel if you want, she lets you write your own commands, and she's extremely configurable. no cap. πŸ‘‘


🌸 COMMANDS 🌸

  • run (or r) β€” run environments. the classic. the moment.
  • run-parallel (or p) β€” run environments in parallel. multitasking icon behaviour fr fr.
  • depends (or de) β€” visualize tox environment dependencies. a little map of who needs who πŸ—ΊοΈ
  • man β€” Set up tox man page for current shell.
  • list (or l) β€” list environments.
  • devenv (or d) β€” sets up a development environment at ENVDIR based on the tox configuration specified.
  • schema β€” Generate schema for tox configuration.
  • config (or c) β€” show tox configuration.
  • quickstart (or q) β€” Command line script to quickly create a tox config file for a Python project. the fast track, bestie πŸƒβ™€οΈ
  • exec (or e) β€” execute an arbitrary command within a tox environment.
  • legacy (or le) β€” legacy entry-point command.

For command-specific help, use: tox command --help


πŸ’… OPTIONS πŸ’…

  • -h, --help β€” show this help message and exit. the "bestie what do I do" button 🫢
  • --colored β€” should output be enriched with colors, default is yes unless TERM=dumb or NO_COLOR is defined.
  • --stderr-color β€” color for stderr output, use RESET for terminal defaults.
  • -v, --verbose β€” increase verbosity.
  • -q, --quiet β€” decrease verbosity.
  • --exit-and-dump-after seconds β€” dump tox threads after n seconds and exit the app β€” useful to debug when tox hangs, 0 means disabled.
  • -c, --conf file β€” configuration file/folder for tox (if not specified will discover one).
  • --workdir dir β€” tox working directory (if not specified will be the folder of the config file).
  • --root dir β€” project root directory (if not specified will be the folder of the config file).
  • --runner β€” the tox run engine to use when not explicitly stated in tox env configuration.
  • --version β€” show program's and plugins version number and exit.
  • --no-provision REQ_JSON β€” do not perform provision, but fail and if a path was provided write provision metadata as JSON to it.
  • --no-recreate-provision β€” if recreate is set do not recreate provision tox environment.
  • -r, --recreate β€” recreate the tox environments.
  • -x, --override β€” configuration override(s), e.g., -x testenv:pypy3.ignore_errors=True

πŸŽ€ FILES πŸŽ€

  • tox.toml β€” Primary configuration file in TOML format (recommended). the it-girl of config files ✨
  • tox.ini β€” Configuration file in INI format.
  • pyproject.toml β€” Alternative configuration location under the [tool.tox] section.
  • setup.cfg β€” Legacy configuration location (deprecated). ⚠️ deprecated, bestie, she's retired.

The configuration files are searched in the order listed above. The first file found is used. so like, first one wins, no takebacks. 🌈


πŸ”₯ ENVIRONMENT VARIABLES πŸ”₯

  • TOX_* β€” Any tox configuration setting can be overridden via environment variables with the TOX_ prefix.
  • NO_COLOR β€” When set to any non-empty value, disables colored output.
  • FORCE_COLOR β€” When set to any non-empty value, forces colored output even when stdout is not a terminal.
  • TOX_PARALLEL_NO_SPINNER β€” When set, disables the progress spinner during parallel execution.

πŸ’œ SEE ALSO πŸ’œ


⭐ AUTHOR ⭐

tox development team

https://github.com/tox-dev/tox


okay that's the whole page, go touch grass and then come back and run your tests πŸ’€πŸŒΈ

and that's a wrap on the tox(1) manual page, from the tox(1) girlies to you β€” mwah πŸ’–

πŸ“¦ where this page comes from