PyCharm
 
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

Prepare for testing

Last modified: 11 October 2024

PyCharm works with multiple testing frameworks out of the box, for example, Python unittests, Pytest, Python nosetests, TwistedTrial, and Python doctests. .

In the IDE, you can create a test class directly from the source code together with the necessary test methods. You can switch between test classes and source code with a shortcut, run multiple tests, view statistics for each test, and export test results to a file.

PyCharm also features code coverage that allows you to analyze your code and understand which areas of your code are covered by tests and which areas require more testing.