PyCharm 4.0.0 Web Help

PyCharm makes it possible to run all tests in a container, individual tests or test methods. For each one, PyCharm provides a temporary run-debug configuration that can be saved if necessary as a permanent one.

To run all tests in a directory
  1. In the project tool window, select the directory that contains tests to be executed.
  2. On the context menu, choose Run 'All in: <directory>'.

    Click thumbnail to view larger image.

  3. Explore results in the test runner.


For Django versions 1.1 and higher, PyCharm supports custom test runner, if this test runner is a class.

To run a test case or test script
  1. Open the desired test in the editor, or select it in the Project tool window.
  2. On the context menu of the selection, choose Run <test class name>.

See Also


Language and Framework-Specific Guidelines:

Web Resources: