![Forrest logo](/images/logo.png)
tox:tldr:1031d
The command tox --recreate -e ${py27}
is used to execute a specific environment called "py27" using the tox
tool.
Here's the breakdown of the command:
-
tox
:tox
is a generic virtualenv management and test command line tool. It automates the process of creating virtual environments, installing dependencies, and running test suites. -
--recreate
: This flag indicates that the virtual environment needs to be recreated before running the command. It essentially removes the existing virtual environment and sets up a fresh one for the specified environment. -
-e ${py27}
: This option specifies the environment to be executed. In this case, it refers to an environment named "py27". A tox environment typically consists of a set of dependencies (specified in atox.ini
file) and test configurations.
So when you run tox --recreate -e ${py27}
, it will recreate the "py27" environment, including installing any necessary dependencies, and then execute the tests or commands defined in the configuration associated with that environment.