PyCharm 2020.1 Help

Tox Support

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

Use tox integration

  1. Download tox.

  2. Create a Python project .

  3. Install tox for the project interpreter.

  4. Specify tox as a dedicated test runner for your project.

  5. Ensure that your project has the following files:

    • tox.ini
    • test files

  6. 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: 6 July 2020