PyCharm 2019.3 Help

Tox Support

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

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
    • 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. The dedicated tox run/debug configuration is launched.

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

Running tox tests

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

Context menu to  run a tox test
Last modified: 14 January 2020