PyCharm Integration

Many of our developers use PyCharm as an IDE. PyCharm has good support for testing within the IDE, with PyTest integration out of the box.

Using PyTest

To configure PyCharm to use PyTest as the default test runner, navigate to:

File -> Settings -> Tools -> Python Integrated Tools

In the settings screen, there's an option to set the default test runner:

Update to PyTest and save the change

Creating Run Configuration

To create a run configuration for the GS Quant tests, navigate to:

Run -> Edit Configurations...

From there you can create a new PyTest configuration. See following example:

You can create and save configurations for different folders or files by updating the target script path. For more details on configuring testing within PyCharm see the PyCharm Testing Guide

Related Content