| load("//tools/base/bazel:bazel.bzl", "iml_module") |
| |
| # managed by go/iml_to_build |
| iml_module( |
| name = "intellij.android.core.run", |
| generate_k1_tests = True, |
| iml_files = ["intellij.android.core.run.iml"], |
| test_class = "com.android.tools.idea.IdeaTestSuite", |
| # keep sorted |
| test_data = [ |
| "//prebuilts/studio/jdk/jdk8:jdk_runtime_files", |
| "//prebuilts/studio/layoutlib:build.prop", |
| "//prebuilts/studio/sdk:build-tools/latest", |
| "//prebuilts/studio/sdk:platform-tools", |
| "//prebuilts/studio/sdk:platforms/latest", |
| "//prebuilts/studio/sdk:sources", |
| "//tools/adt/idea/android:test_deps", |
| "//tools/adt/idea/android/lib:apks", |
| "//tools/adt/idea/android/testData", |
| "//tools/adt/idea/compose-ide-plugin/testData", |
| "//tools/base/build-system:android_gradle_plugin.zip", # Please do not add old versions of AGP here. Use the old-agp-tests module instead. |
| "//tools/base/build-system:android_gradle_plugin_runtime_dependencies", |
| "//tools/base/build-system:gradle-distrib", |
| "//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts", |
| ], |
| # do not sort: must match IML order |
| test_deps = [ |
| "//tools/adt/idea/.idea/libraries:junit4", |
| "//tools/adt/idea/android:intellij.android.core", |
| "//tools/adt/idea/adt-ui:intellij.android.adt.ui", |
| "//tools/adt/idea/.idea/libraries:mockito", |
| "//tools/adt/idea/.idea/libraries:truth", |
| "//tools/base/testutils:studio.android.sdktools.testutils", |
| "//tools/adt/idea/android-test-framework:intellij.android.testFramework", |
| "//tools/base/flags:studio.android.sdktools.flags", |
| "//tools/adt/idea/android-common:intellij.android.common", |
| "//tools/base/lint:studio.android.sdktools.lint-checks", |
| "//tools/adt/idea/android:intellij.android.core.tests", |
| "//tools/adt/idea/execution/common:intellij.android.execution.common", |
| "//tools/base/deploy/deployer:studio.android.sdktools.deployer", |
| "//tools/adt/idea/project-system:intellij.android.projectSystem", |
| "//tools/adt/idea/.idea/libraries:kotlin-test", |
| "//tools/adt/idea/deploy:intellij.android.deploy", |
| "//tools/base/fakeadbserver:studio.android.sdktools.fakeadbserver", |
| "//tools/adt/idea/gradle-dsl:intellij.android.gradle.dsl.testutils", |
| "//tools/base/manifest-parser:studio.android.sdktools.manifest-parser", |
| "//tools/adt/idea/compose-ide-plugin:intellij.android.compose-ide-plugin", |
| "//tools/adt/idea/.idea/libraries:studio-analytics-proto", |
| "//tools/adt/idea/artwork:intellij.android.artwork", |
| "//tools/adt/idea/project-system-gradle-models:intellij.android.projectSystem.gradle.models", |
| "//tools/adt/idea/project-system-gradle:intellij.android.projectSystem.gradle", |
| "//tools/adt/idea/gradle-dsl:intellij.android.gradle.dsl", |
| "//tools/adt/idea/jps-model:intellij.android.jps.model", |
| "//tools/adt/idea/android/lib:instantapps-api", |
| "//tools/base/common:studio.android.sdktools.common.testfixtures", |
| "//tools/adt/idea/android-adb:intellij.android.adb", |
| "//tools/adt/idea/backup:intellij.android.backup.api", |
| "//tools/base/backup:studio.android.sdktools.backup", |
| "//tools/adt/idea/.idea/libraries:emulator-proto", |
| "//tools/adt/idea/.idea/libraries:jimfs", |
| "//tools/adt/idea/intellij.android.compose-common", |
| "//tools/adt/idea/.idea/libraries:studio-proto", |
| "//tools/analytics-library/testing:android.sdktools.analytics-testing", |
| "//tools/adt/idea/execution/common:intellij.android.execution.common.tests", |
| "//tools/analytics-library/tracker:analytics-tracker", |
| "//tools/base/device-provisioner:studio.android.sdktools.device-provisioner", |
| "//tools/adt/idea/.idea/libraries:jetbrains.kotlinx.coroutines.test", |
| "//tools/base/adblib:studio.android.sdktools.adblib", |
| "//tools/adt/idea/adt-testutils:intellij.android.adt.testutils", |
| "//tools/base/adblib-ddmlibcompatibility:studio.android.sdktools.adblib.ddmlibcompatibility", |
| "//tools/adt/idea/.idea/libraries:mockito-kotlin", |
| "//tools/adt/idea/android-adb:intellij.android.adb.testUtil", |
| ], |
| test_friends = ["//tools/adt/idea/android:intellij.android.core"], |
| test_jvm_flags = [ |
| "-Djdk.attach.allowAttachSelf=true", |
| ], |
| test_shard_count = 5, |
| test_srcs = ["testSrc"], |
| test_tags = [ |
| "block-network", |
| ], |
| test_timeout = "long", |
| visibility = ["//visibility:public"], |
| # do not sort: must match IML order |
| deps = [ |
| "@intellij//:intellij-sdk", |
| "@intellij//:com.intellij.java", |
| "@intellij//:org.jetbrains.kotlin", |
| ], |
| ) |