[python] Add intellij.python.featuresTrainer._test module descriptor to run tests in dev-mode (IJPL-116621)

GitOrigin-RevId: 3149ff3901c95cf2ca9cdb2a6c7dd5f775b7243a
This commit is contained in:
Ilia Kirianovskii
2025-09-24 22:09:33 +02:00
committed by intellij-monorepo-bot
parent e23fd3f184
commit 9522b27a4d
3 changed files with 16 additions and 1 deletions

View File

@@ -7,6 +7,12 @@ jvm_resources(
strip_prefix = "resources"
)
jvm_resources(
name = "featuresTrainer_test_resources",
files = glob(["testResources/**/*"]),
strip_prefix = "testResources"
)
jvm_library(
name = "featuresTrainer",
module_name = "intellij.python.featuresTrainer",
@@ -79,7 +85,8 @@ jvm_library(
"//python/services/internal-impl:python-community-services-internal-impl_test_lib",
"//python/pluginCore:community-plugin",
"@lib//:stream_ex",
]
],
runtime_deps = [":featuresTrainer_test_resources"]
)
### auto-generated section `build intellij.python.featuresTrainer` end

View File

@@ -6,6 +6,7 @@
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/testSrc" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/testResources" type="java-test-resource" />
<excludeFolder url="file://$MODULE_DIR$/build" />
</content>
<orderEntry type="inheritedJdk" />

View File

@@ -0,0 +1,7 @@
<idea-plugin>
<dependencies>
<module name="intellij.libraries.junit5.params"/>
<module name="intellij.python.community.junit5Tests.framework._test"/>
<module name="intellij.python.featuresTrainer"/>
</dependencies>
</idea-plugin>