IntelliJ IDEA 2018.2 Help

Tox Support

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

Before you start working with, make sure that plugin is installed and enabled.

Also make sure that the following prerequisites are met:

  • Java SDK is downloaded and installed on your machine.
  • The required framework SDKs are downloaded and installed on your machine.
  • Tox is installed on at least one of the Java 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:

py tox

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

py tox1
Last modified: 18 June 2018

See Also