2018-07-28 23:19:14 +01:00
|
|
|
# tox
|
|
|
|
|
|
|
|
> Automate Python testing across multiple Python versions.
|
|
|
|
> Use tox.ini to configure environments and test command.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://github.com/tox-dev/tox>.
|
2018-07-28 23:19:14 +01:00
|
|
|
|
|
|
|
- Run tests on all test environments:
|
|
|
|
|
|
|
|
`tox`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Create a `tox.ini` configuration:
|
2018-07-28 23:19:14 +01:00
|
|
|
|
|
|
|
`tox-quickstart`
|
|
|
|
|
|
|
|
- List the available environments:
|
|
|
|
|
|
|
|
`tox --listenvs-all`
|
|
|
|
|
2023-05-02 16:16:07 +01:00
|
|
|
- Run tests on a specific environment (e.g. Python 3.6):
|
2018-07-28 23:19:14 +01:00
|
|
|
|
|
|
|
`tox -e {{py36}}`
|
|
|
|
|
|
|
|
- Force the virtual environment to be recreated:
|
|
|
|
|
|
|
|
`tox --recreate -e {{py27}}`
|