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(orr) β run environments. the classic. the moment.run-parallel(orp) β run environments in parallel. multitasking icon behaviour fr fr.depends(orde) β visualize tox environment dependencies. a little map of who needs who πΊοΈmanβ Set up tox man page for current shell.list(orl) β list environments.devenv(ord) β sets up a development environment atENVDIRbased on the tox configuration specified.schemaβ Generate schema for tox configuration.config(orc) β show tox configuration.quickstart(orq) β Command line script to quickly create a tox config file for a Python project. the fast track, bestie πβοΈexec(ore) β execute an arbitrary command within a tox environment.legacy(orle) β 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 unlessTERM=dumborNO_COLORis defined.--stderr-colorβ color for stderr output, useRESETfor 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,0means 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 theTOX_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 π
- Full documentation:
https://tox.wiki/ pip(1),pytest(1),virtualenv(1)β the whole squad π«Ά
β 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
- ubuntu stonking: tox 4.55.1-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms