PyCharm 2017.1 Help

Tox Support

PyCharm integrates with Tox and allows running tests in multiple environments.

In this section:

Make sure the following prerequisites are met:

  • Tox is installed on at least one of the Python interpreters available on your computer.
  • Your project contains the following files:
    • tox.ini
    • setup.py
    • test files

Using Tox integration

To make use of the Tox integration, follow these steps:

  1. Create a project and the required files.
  2. Right-click the file tox.ini and choose Run. So doing, the dedicated Tox run/debug configuration is launched.

The results show up in the test runner tab of the Run tool window:

/help/img/idea/2017.1/py_tox.png

Right-click any test result in the Test Runner to execute Tox in a particular environment:

/help/img/idea/2017.1/py_tox1.png

See Also

Last modified: 26 July 2017