From 74cabd2ab57c44e7c74bfd1b6ed62175c758c8fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Tue, 23 Jul 2024 11:38:06 +0200 Subject: [PATCH] light_and_heavy_tests.md: mention DefaultLightProjectDescriptor --- topics/basics/testing_plugins/light_and_heavy_tests.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/topics/basics/testing_plugins/light_and_heavy_tests.md b/topics/basics/testing_plugins/light_and_heavy_tests.md index b2acbf1c9..f8d2ecbcc 100644 --- a/topics/basics/testing_plugins/light_and_heavy_tests.md +++ b/topics/basics/testing_plugins/light_and_heavy_tests.md @@ -64,6 +64,8 @@ It is done by extending the [`LightProjectDescriptor`](%gh-ic%/platform/testFram Before executing each test, the project instance will be reused if the test case returns the same project descriptor as the previous one or recreated if the descriptor is different (`equals() = false`). +When [testing JVM languages](testing_faq.md#how-to-test-a-jvm-language), see also [`DefaultLightProjectDescriptor`](%gh-ic%/java/testFramework/src/com/intellij/testFramework/fixtures/DefaultLightProjectDescriptor.java). + ## Heavy Tests The standard way of writing a heavy test is to extend [`HeavyPlatformTestCase`](%gh-ic%/platform/testFramework/src/com/intellij/testFramework/HeavyPlatformTestCase.java).