mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
31 lines
605 B
Plaintext
31 lines
605 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# tox
|
|
|
|
> Automate Python testing across multiple Python versions.
|
|
> Use tox.ini to configure environments and test command.
|
|
> More information: <https://github.com/tox-dev/tox>.
|
|
|
|
- Run tests on all test environments:
|
|
|
|
`tox`
|
|
|
|
- Create a `tox.ini` configuration:
|
|
|
|
`tox-quickstart`
|
|
|
|
- List the available environments:
|
|
|
|
`tox {{[-a|--listenvs-all]}}`
|
|
|
|
- Run tests on a specific environment (e.g. Python 3.6):
|
|
|
|
`tox -e {{py36}}`
|
|
|
|
- Force the virtual environment to be recreated:
|
|
|
|
`tox {{[-r|--recreate]}} -e {{py27}}`
|