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

Vitest

Last modified: 03 December 2022

Available only in PyCharm Professional: download to try or compare editions

Required plugins:

JavaScript and TypeScript, Vite -  The plugins are available only in PyCharm Professional, where they are enabled by default.

PyCharm integrates with Vitest, a Vite-native unit test framework. You can run, debug, do snapshot testing, and measure test coverage both from the editor and via a run/debug configuration.

You can re-run failed tests or turn on the watch mode. When you launch a test session in this mode, PyCharm monitors changes in your project source code. As soon as any changes are made to a test or to its subject, PyCharm re-runs the affected test, you do not even have to re-start the run/debug configuration.