IntelliJ Platform Plugin SDK
 
IntelliJ Platform Explorer

Light and Heavy Tests

Edit pageLast modified: 28 October 2024

Plugin tests run in a real, rather than mocked, IntelliJ Platform environment and use real implementations for most application and project services.

Loading and initializing all the project components and services for a project to run tests is a relatively expensive operation, and it is desired to avoid doing it for each test. Dependently on the loading and execution time, we make a difference between light tests and heavy tests available in the IntelliJ Platform test framework:

  • Light tests reuse a project from the previous test run when possible.

  • Heavy tests create a new project for each test.

Light and heavy tests use different base classes or fixture classes, as described below.