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]

gollark: Personally I consider rounding and shading very uncool.
gollark: Yes, why?
gollark: I maybe can (although likely not *now* given the situation), but it would be annoying and expensive. Also I have no idea where or how to.
gollark: My Wileyfox Swift 1 was pretty great, it had a plastic back cover, dual SIM cards, and a removable battery, but a design flaw in the micro-USB port apparently made most of the existing devices become unusable after about two years.
gollark: Especially on the everything-is-glued phones.

References


    This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.