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 supports various configuration file formats. Initially configuration could only be done in a tox.ini file in INI format. Since version 4.21 tox supports native TOML configuration integrated into pyproject.toml.[6][7]
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".
- ^ "tox 2.3.1". Python Package Index.
- ^ "A Simple Tox Tutorial". Waprin.io. 21 May 2015.
- ^ a b Moshe Zadka (5 May 2019). "Automate your Python code tests with tox". Opensource.com.
- ^ a b Alejandro Do Nascimento (22 March 2018). "Testing against multiple python versions with tox". Medium.com.
- ^ "Configuration". tox.wiki.
- ^ "Release History". tox.wiki.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.