Content deleted Content added
AFD closed as speedy keep (XFDcloser) |
Andy Dingley (talk | contribs) No edit summary |
||
Line 8:
|website=[[Python Package Index]]
|url=https://pypi.python.org/pypi/tox
}}</ref> Its use began to become popular in the Python community from around 2015.<ref name="Waprin, 2015" />
}}</ref>▼
<code>tox</code> acts a wrapper for both [[virtual environment (container)|virtual environment]]s and [[test automation]] tools, to simplify the consistent testing of Python code across a range of environments.<ref name="Zadka, 2019" /> It integrates the use of a virtualisation tool, such as <code>virtualenv</code>, with a test script such as Imprimatur. This gives a consistent [[container (virtualization)|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.<ref name="Zadka, 2019" /><ref name="Do Nascimento, 2018" />
{{anchor|tox.ini}}Tox is configured through a simple <code>tox.ini</code> file in [[INI_file | INI]] format.<ref>{{Cite web
Line 19:
== Smoke testing ==
<code>tox</code> is also convenient as a simple [[smoke testing (software)|smoke test]] on a newly installed, or freshly-updated system. It is also useful before beginning a [[refactoring]] exercise.<ref name="Do Nascimento, 2018" />
== References ==
{{Notelist-lr}}
{{Reflist|
<ref name="Do Nascimento, 2018" >{{Cite web
|title=Testing against multiple python versions with tox
|author=Alejandro Do Nascimento
|website=Medium.com
|date=22 March 2018
|url=https://medium.com/@alejandrodnm/testing-against-multiple-python-versions-with-tox-9c68799c7880
▲}}</ref>
<ref name="Waprin, 2015" >{{Cite web
|title=A Simple Tox Tutorial
|author=
|website=Waprin.io
|date=21 May 2015
|url=https://waprin.io/2015/05/21/introducing-tox.html
}}</ref>
<ref name="Zadka, 2019" >{{Cite web
|title=Automate your Python code tests with tox
|author=Moshe Zadka
|website=Opensource.com
|date=5 May 2019
|url=https://opensource.com/article/19/5/python-tox
}}</ref>
}}
[[Category:Continuous integration]]
|