talira

Run Python tests and tasks across isolated environments, locally and in CI

open sourceMITfree

tox automates and standardises testing in Python: it creates isolated virtual environments, checks that a package builds and installs correctly under different Python implementations, versions and dependencies, and runs your tests in each with the test tool you choose. The same configuration works as a frontend for continuous integration servers, so local and CI runs share one definition and CI needs little boilerplate. It also runs other development tasks, such as linting or building docs, in their own environments.

Ways to install

Package managers

Problems it solves

  • test my Python package against several Python versions without managing virtualenvs by hand
  • run the same test and lint commands locally and in CI
  • check my Python package builds and installs cleanly before release

Features

  • Creates an isolated virtual environment for each test environment
  • Tests a package across Python versions, implementations and dependencies
  • Runs any test tool, plus tasks such as linting or building docs
  • One configuration for local runs and as a CI frontend