From f8d410629d93c8930c7e875e46f111afc5558798 Mon Sep 17 00:00:00 2001 From: Timothy Hopper Date: Sat, 28 Jul 2018 18:19:14 -0400 Subject: [PATCH] tox: add page (#2225) --- pages/common/tox.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/tox.md diff --git a/pages/common/tox.md b/pages/common/tox.md new file mode 100644 index 0000000000..7794df9eaa --- /dev/null +++ b/pages/common/tox.md @@ -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}}`