From ccecc187d2a924cf495de1684ae4c1a0609e9cff Mon Sep 17 00:00:00 2001 From: Ilya Kazakevich Date: Fri, 28 Nov 2025 21:47:40 +0000 Subject: [PATCH] tests [python]: Include Python community plugin (aka `PythonCore`) into community idea tests. Community tests on TC might run python tests, and they do not work without basic python support. With this change, lots of env tests from various pythons modules are also brought to the class-path. We exclude them by means of a new group. See `ALL_EXCLUDE_DEFINED` Merge-request: IJ-MR-183967 Merged-by: Ilya Kazakevich GitOrigin-RevId: d0e778b0fcbb074f692035e231dae04b7948c546 --- BUILD.bazel | 2 ++ intellij.idea.community.main.iml | 1 + .../testFramework/testResources/tests/testGroups.properties | 3 +++ 3 files changed, 6 insertions(+) diff --git a/BUILD.bazel b/BUILD.bazel index 95a3d2e1046c..fcbb8224c895 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -286,6 +286,7 @@ jvm_library( "//plugins/maven/maven36-server-impl:server-m36-impl", "//plugins/maven/maven40-server-impl:server-m40", "//plugins/mcp-server:mcpserver", + "//python/pluginCore:community-plugin", ] ) @@ -564,6 +565,7 @@ jvm_library( "//plugins/terminal/tests:tests_test_lib", "//plugins/git4idea/terminal", "//plugins/git4idea/terminal:terminal_test_lib", + "//python/pluginCore:community-plugin", ] ) ### auto-generated section `build intellij.idea.community.main` end diff --git a/intellij.idea.community.main.iml b/intellij.idea.community.main.iml index beb6cc4bc83b..7813839fd556 100644 --- a/intellij.idea.community.main.iml +++ b/intellij.idea.community.main.iml @@ -259,5 +259,6 @@ + \ No newline at end of file diff --git a/platform/testFramework/testResources/tests/testGroups.properties b/platform/testFramework/testResources/tests/testGroups.properties index 784cab4f9b00..fb28a4f8d65a 100644 --- a/platform/testFramework/testResources/tests/testGroups.properties +++ b/platform/testFramework/testResources/tests/testGroups.properties @@ -381,6 +381,9 @@ com.intellij.execution.junit.* com.jetbrains.python.* com.intellij.restructuredtext.* +[PYTHON_ENV_TESTS] +com.intellij.python.junit5Tests.env.* + [KOTLIN_PLUGIN_TESTS] org.jetbrains.kotlin.* org.jetbrains.uast.test.kotlin.*