tldr/pages/common/tox.md

26 lines
484 B
Markdown
Raw Normal View History

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-05-14 17:21:15 +01:00
> Homepage: <https://github.com/tox-dev/tox>.
2018-07-28 23:19:14 +01:00
- Run tests on all test environments:
`tox`
- Create a tox.ini configuration:
`tox-quickstart`
- List the available environments:
`tox --listenvs-all`
- Run tests on a specific environment (e.g. python 3.6):
`tox -e {{py36}}`
- Force the virtual environment to be recreated:
`tox --recreate -e {{py27}}`