From c4bd433a34d3b0f77c3a6ede913e1e4fca77a464 Mon Sep 17 00:00:00 2001 From: Ilia Kirianovskii Date: Tue, 14 Oct 2025 22:38:36 +0200 Subject: [PATCH] [python] Add intellij.featuresTrainer._test module descriptor to run tests in dev-mode (IJPL-116621) GitOrigin-RevId: 3c79fdc38d4b311241c5ebb569dc56cb2cb96a1a --- plugins/ide-features-trainer/BUILD.bazel | 7 +++++++ plugins/ide-features-trainer/intellij.featuresTrainer.iml | 1 + .../testResources/intellij.featuresTrainer._test.xml | 6 ++++++ .../intellij.python.featuresTrainer._test.xml | 1 + 4 files changed, 15 insertions(+) create mode 100644 plugins/ide-features-trainer/testResources/intellij.featuresTrainer._test.xml diff --git a/plugins/ide-features-trainer/BUILD.bazel b/plugins/ide-features-trainer/BUILD.bazel index 6ac0bf7c10f4..a9cdbf00764a 100644 --- a/plugins/ide-features-trainer/BUILD.bazel +++ b/plugins/ide-features-trainer/BUILD.bazel @@ -7,6 +7,12 @@ resourcegroup( strip_prefix = "res" ) +resourcegroup( + name = "featuresTrainer_test_resources", + srcs = glob(["testResources/**/*"]), + strip_prefix = "testResources" +) + jvm_library( name = "featuresTrainer", module_name = "intellij.featuresTrainer", @@ -57,6 +63,7 @@ jvm_library( name = "featuresTrainer_test_lib", visibility = ["//visibility:public"], srcs = glob(["testSrc/**/*.kt", "testSrc/**/*.java", "testSrc/**/*.form"], allow_empty = True), + resources = [":featuresTrainer_test_resources"], associates = [":featuresTrainer"], deps = [ "@lib//:kotlin-stdlib", diff --git a/plugins/ide-features-trainer/intellij.featuresTrainer.iml b/plugins/ide-features-trainer/intellij.featuresTrainer.iml index 438ca8c06c7d..635212ce5152 100644 --- a/plugins/ide-features-trainer/intellij.featuresTrainer.iml +++ b/plugins/ide-features-trainer/intellij.featuresTrainer.iml @@ -27,6 +27,7 @@ + diff --git a/plugins/ide-features-trainer/testResources/intellij.featuresTrainer._test.xml b/plugins/ide-features-trainer/testResources/intellij.featuresTrainer._test.xml new file mode 100644 index 000000000000..ffcc6932f3ac --- /dev/null +++ b/plugins/ide-features-trainer/testResources/intellij.featuresTrainer._test.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/python/python-features-trainer/testResources/intellij.python.featuresTrainer._test.xml b/python/python-features-trainer/testResources/intellij.python.featuresTrainer._test.xml index 4fccca68490d..5b07ae9110f3 100644 --- a/python/python-features-trainer/testResources/intellij.python.featuresTrainer._test.xml +++ b/python/python-features-trainer/testResources/intellij.python.featuresTrainer._test.xml @@ -1,5 +1,6 @@ +