mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-03 21:15:32 +02:00
tox: add page (#2225)
This commit is contained in:
parent
d432ed3c39
commit
f8d410629d
1 changed files with 24 additions and 0 deletions
24
pages/common/tox.md
Normal file
24
pages/common/tox.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# tox
|
||||
|
||||
> Automate Python testing across multiple Python versions.
|
||||
> Use tox.ini to configure environments and test command.
|
||||
|
||||
- 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}}`
|
Loading…
Add table
Reference in a new issue