IntelliJ IDEA 2020.1 Help

Tox Support

IntelliJ IDEA integrates with tox and allows running tests in multiple environments.

Use tox integration

  1. Ensure that Python is downloaded and installed on your machine.

  2. Download tox.

  3. Create a Python project.

  4. Ensure that at least one Python SDK is configured.

  5. Install tox for the Python SDK.

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

  7. Ensure that your project has the following files:

    • tox.ini
    • test files

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