light_and_heavy_tests.md: format

This commit is contained in:
Yann Cébron 2021-04-08 15:47:28 +02:00
parent b6bddd41f1
commit 6f91734b0e

View File

@ -29,7 +29,8 @@ The standard way of writing a light test is to extend the following classes:
When writing a light test, you can specify the project's requirements that you need to have in your test, such as the module type, the configured SDK, facets, libraries, etc.
You do so by extending the [`LightProjectDescriptor`](upsource:///platform/testFramework/src/com/intellij/testFramework/LightProjectDescriptor.java) class and returning your project descriptor from `getProjectDescriptor()`.
Before executing each test, the project will be reused if the test case returns the same project descriptor (usually stored in static final field) as the previous one, or recreated if the descriptor is different (`equals() = false`).
Before executing each test, the project instance will be reused if the test case returns the same project descriptor (usually stored in static final field) as the previous one, or recreated if the descriptor is different (`equals() = false`).
## Heavy Tests