PyCharm 2019.2 Help

Choosing Your Testing Framework

Choose a testing framework

  1. Open the Settings/Preferences dialog, and under the node Tools, click the page Python Integrated Tools.

  2. On this page, click the Default Test Runner field.

  3. Choose the desired test runner:

    Selecting a test runner

Mind the following:

  • If a user already has the testing run/debug configuration for a specific file and for a specific testing framework, then PyCharm will launch this run/debug configuration, regardless of your chosen default test runner.

  • By default, the suggested default test runner is unittest. However, it's possible to change your choice to nosetest, pytest or TwistedTrial.

  • If the selected test runner is missing in the specified interpreter, the appropriate notification appears.

    Install the missing test runner

    Click the Fix button to download and install the corresponding framework.

    With the test runner selected, PyCharm suggests the appropriate default run/debug configuration:

    Suggested run/debug configuration for a test framework
Last modified: 14 October 2019