IntelliJ IDEA 2019.3 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
    • test files

Use tox integration

  1. Create a project. Add the required files.

  2. Download tox.

  3. Install tox for the project interpreter.

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

  5. 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: 20 March 2020