tox (Python testing wrapper)
tox
is a command-line driven automated testing tool for Python, based on the use of virtualenv
. It can be used for both manually-invoked testing from the desktop, or continuous testing within continuous integration frameworks such as Jenkins or Travis CI.[1][2] Its use began to become popular in the Python community from around 2015.[3]
tox
acts a wrapper for both virtual environments and test automation tools, to simplify the consistent testing of Python code across a range of environments.[4] It integrates the use of a virtualisation tool, such as virtualenv
, with a test script such as Imprimatur. This gives a consistent container-based testing environment on both desktops and integration servers. It also allows testing in a range of Python environments, such as Python 2 or Python 3 specific contexts.[4][5]
Tox is configured through a simple tox.ini
file in INI format.[6]
Smoke testing
tox
is also convenient as a simple smoke test on a newly installed, or freshly-updated system. It is also useful before beginning a refactoring exercise.[5]
References
- ↑ "Welcome to the tox automation project". https://tox.readthedocs.org/en/latest/.
- ↑ "tox 2.3.1". https://pypi.python.org/pypi/tox.
- ↑ "A Simple Tox Tutorial". 21 May 2015. https://waprin.io/2015/05/21/introducing-tox.html.
- ↑ 4.0 4.1 Moshe Zadka (5 May 2019). "Automate your Python code tests with tox". https://opensource.com/article/19/5/python-tox.
- ↑ 5.0 5.1 Alejandro Do Nascimento (22 March 2018). "Testing against multiple python versions with tox". https://medium.com/@alejandrodnm/testing-against-multiple-python-versions-with-tox-9c68799c7880.
- ↑ "tox configuration specification". https://tox.readthedocs.org/en/latest/config.html.
Original source: https://en.wikipedia.org/wiki/Tox (Python testing wrapper).
Read more |