blob: f1c44f5361cff4fcc5870d79d11cdfc2a4643a61 [file] [log] [blame]
load("//tools/base/bazel:bazel.bzl", "iml_module")
load("//tools/base/bazel:maven.bzl", "maven_repository")
# managed by go/iml_to_build
iml_module(
name = "intellij.android.designer-perf-tests",
iml_files = ["intellij.android.designer-perf-tests.iml"],
split_test_targets = {
"perfgateCompose": {
"tags": [
"noci:studio-linux",
"ci:perfgate-linux",
],
"shard_count": 5,
"test_filter": "com.android.tools.idea.rendering.PerfgateComposeTest",
},
"perfgateComplex": {
"tags": [
"noci:studio-linux",
"ci:perfgate-linux",
],
"shard_count": 2,
"test_filter": "com.android.tools.idea.rendering.PerfgateComplexRenderTest",
},
"perfgateVisualLint": {
"tags": [
"noci:studio-linux",
"ci:perfgate-linux",
],
"shard_count": 5,
"test_filter": "com.android.tools.idea.uibuilder.visual.visuallint",
},
"perfgateJarManager": {
"tags": [
"noci:studio-linux",
"ci:perfgate-linux",
],
"test_filter": "com.android.tools.idea.rendering.PerfgateJarManagerTest",
},
"perfgateComposeStandardGradle": {
"tags": [
"noci:studio-linux",
"ci:perfgate-linux",
],
"shard_count": 2,
"test_filter": "com.android.tools.idea.rendering.gradle.PerfgateComposeStandardGradleTest",
},
"perfgateComposeEssentialsGradle": {
"tags": [
"noci:studio-linux",
"ci:perfgate-linux",
],
"shard_count": 3,
"test_filter": "com.android.tools.idea.rendering.gradle.PerfgateComposeEssentialsGradleTest",
},
"perfgateComposeRenderQualityGradle": {
"tags": [
"noci:studio-linux",
"ci:perfgate-linux",
],
"shard_count": 3,
"test_filter": "com.android.tools.idea.rendering.gradle.PerfgateComposeRenderQualityGradleTest",
},
"perfgateComposeUiCheckGradle": {
"tags": [
"noci:studio-linux",
"ci:perfgate-linux",
],
"shard_count": 1,
"test_filter": "com.android.tools.idea.rendering.gradle.PerfgateComposeUiCheckGradleTest",
},
"perfgateUiCheck": {
"tags": [
"noci:studio-linux",
"ci:perfgate-linux",
],
"shard_count": 5,
"test_filter": "com.android.tools.idea.uicheck",
},
"non-perfgate": {
},
},
tags = [
"noci:studio-win",
],
test_class = "com.android.tools.idea.rendering.PerfgateRenderTestSuite",
test_data = [
":test_deps",
"//prebuilts/studio/jdk/jdk11:jdk_runtime_files",
"//prebuilts/studio/layoutlib:runtime",
"//prebuilts/studio/layoutlib/data:framework_res.jar",
"//prebuilts/studio/sdk:build-tools/35.0.0",
"//prebuilts/studio/sdk:build-tools/latest",
"//prebuilts/studio/sdk:platforms/android-35",
"//prebuilts/studio/sdk:platforms/latest",
"//tools/adt/idea/android/native/diagnostics/heap:libjni_object_tagger.prebuilt",
"//tools/adt/idea/android/testData",
"//tools/adt/idea/compose-ide-plugin/testData",
"//tools/adt/idea/designer-perf-tests/testData",
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_for_compose_prebuilts",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
"//tools/base/third_party/kotlin:kotlin-m2repository",
],
# do not sort: must match IML order
test_deps = [
"//tools/adt/idea/.idea/libraries:junit4",
"//tools/base/perf-logger:studio.perf-logger",
"//tools/base/testutils:studio.android.sdktools.testutils",
"//tools/base/layoutlib-api:studio.android.sdktools.layoutlib-api",
"//tools/adt/idea/adt-testutils:intellij.android.adt.testutils",
"//tools/adt/idea/android-common:intellij.android.common",
"//tools/adt/idea/android:intellij.android.core",
"//tools/adt/idea/compose-designer:intellij.android.compose-designer",
"//tools/adt/idea/android-test-framework:intellij.android.testFramework",
"//tools/adt/idea/.idea/libraries:layoutlib",
"//tools/adt/idea/designer:intellij.android.designer",
"//tools/adt/idea/layoutlib:intellij.android.layoutlib",
"//tools/adt/idea/.idea/libraries:mockito",
"//tools/adt/idea/adt-ui:intellij.android.adt.ui",
"//tools/adt/idea/project-system-gradle:intellij.android.projectSystem.gradle",
"//tools/adt/idea/preview-designer:intellij.android.preview-designer",
"//tools/adt/idea/render-resources:intellij.android.render-resources",
"//tools/adt/idea/rendering:intellij.android.rendering",
"//tools/adt/idea/project-system:intellij.android.projectSystem",
"//tools/adt/idea/project-system-gradle-models:intellij.android.projectSystem.gradle.models",
"//tools/adt/idea/preview-elements:intellij.android.preview-elements",
"//tools/adt/idea/preview-fast-compile:intellij.android.preview-fast-compile",
"//tools/adt/idea/visual-lint:intellij.android.visual-lint",
"//tools/adt/idea/compose-designer:intellij.android.compose-designer.testFramework",
"//tools/adt/idea/.idea/libraries:truth",
],
test_jvm_flags = [
"-Djdk.attach.allowAttachSelf=true",
],
test_resources = ["testData"],
test_srcs = ["testSrc"],
test_timeout = "long",
visibility = ["//visibility:public"],
# do not sort: must match IML order
deps = [
"@intellij//:intellij-sdk",
"@intellij//:com.intellij.java",
"@intellij//:com.intellij.gradle",
"//tools/base/sdk-common:studio.android.sdktools.sdk-common",
"//tools/adt/idea/intellij.android.compose-common",
],
)
maven_repository(
name = "test_deps",
# keep sorted: for buildifier
artifacts = [
"@maven//:androidx.activity.activity-compose_1.9.3",
"@maven//:androidx.annotation.annotation-jvm_1.6.0",
"@maven//:androidx.annotation.annotation_1.2.0-rc01",
"@maven//:androidx.appcompat.appcompat_1.3.0",
"@maven//:androidx.appcompat.appcompat_1.7.0",
"@maven//:androidx.collection.collection-ktx_1.5.0-alpha06",
"@maven//:androidx.collection.collection_1.5.0-alpha06",
"@maven//:androidx.compose.animation.animation_1.7.0", # Compose BOM 2024.09.00
"@maven//:androidx.compose.animation.animation_1.8.0-alpha06",
"@maven//:androidx.compose.compiler.compiler_1.5.1",
"@maven//:androidx.compose.foundation.foundation_1.7.0", # Compose BOM 2024.09.00
"@maven//:androidx.compose.foundation.foundation_1.8.0-alpha06",
"@maven//:androidx.compose.material.material_1.8.0-alpha06",
"@maven//:androidx.compose.ui.ui-tooling_1.7.0", # Compose BOM 2024.09.00
"@maven//:androidx.compose.ui.ui-tooling_1.8.0-alpha06",
"@maven//:androidx.constraintlayout.constraintlayout_2.1.4",
"@maven//:androidx.core.core-ktx_1.10.0",
"@maven//:androidx.core.core-ktx_1.13.1", # Compose BOM 2024.09.00
"@maven//:androidx.core.core_1.5.0-beta01",
"@maven//:androidx.core.core_1.5.0-rc02",
"@maven//:androidx.emoji2.emoji2-views-helper_1.3.0",
"@maven//:androidx.emoji2.emoji2-views-helper_1.4.0",
"@maven//:androidx.lifecycle.lifecycle-common-java8_2.8.3",
"@maven//:androidx.lifecycle.lifecycle-common_2.6.2",
"@maven//:androidx.lifecycle.lifecycle-common_2.8.3",
"@maven//:androidx.lifecycle.lifecycle-livedata-ktx_2.8.3",
"@maven//:androidx.lifecycle.lifecycle-livedata_2.6.2",
"@maven//:androidx.lifecycle.lifecycle-livedata_2.8.7",
"@maven//:androidx.lifecycle.lifecycle-process_2.6.2",
"@maven//:androidx.lifecycle.lifecycle-process_2.8.7",
"@maven//:androidx.lifecycle.lifecycle-runtime-compose_2.8.3", #Required by ComposeRenderTest after updating to Compose BOM 2024.09.00
"@maven//:androidx.lifecycle.lifecycle-runtime-ktx_2.8.7",
"@maven//:androidx.lifecycle.lifecycle-runtime_2.6.2",
"@maven//:androidx.lifecycle.lifecycle-runtime_2.8.3",
"@maven//:androidx.lifecycle.lifecycle-service_2.8.3",
"@maven//:androidx.lifecycle.lifecycle-viewmodel-ktx_2.8.3", # Required by ComposeRenderTest after updating to Compose BOM 2024.09.00
"@maven//:androidx.lifecycle.lifecycle-viewmodel-savedstate_2.6.2",
"@maven//:androidx.lifecycle.lifecycle-viewmodel-savedstate_2.8.7",
"@maven//:androidx.lifecycle.lifecycle-viewmodel_2.6.2",
"@maven//:androidx.lifecycle.lifecycle-viewmodel_2.8.3",
"@maven//:androidx.savedstate.savedstate_1.1.0-rc01",
"@maven//:com.android.support.appcompat-v7_28.0.0",
"@maven//:com.android.support.constraint.constraint-layout_2.0.4",
"@maven//:com.android.support.test.espresso.espresso-core_3.0.2",
"@maven//:com.google.android.material.material_1.10.0",
"@maven//:com.google.auto.value.auto-value_1.6.2",
"@maven//:com.google.errorprone.error_prone_annotations_2.3.2",
"@maven//:com.google.jimfs.jimfs_1.1",
"@maven//:com.sun.activation.javax.activation_1.2.0",
"@maven//:commons-lang.commons-lang_2.4",
"@maven//:javax.inject.javax.inject_1",
"@maven//:junit.junit_4.12",
"@maven//:org.codehaus.mojo.animal-sniffer-annotations_1.17",
"@maven//:org.hamcrest.hamcrest-library_1.3",
"@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin-api_1.9.0",
"@maven//:org.jetbrains.kotlin.kotlin-gradle-plugin_1.9.0",
"@maven//:org.jetbrains.kotlin.kotlin-reflect_1.4.32",
"@maven//:org.jetbrains.kotlin.kotlin-reflect_1.9.0",
"@maven//:org.jetbrains.kotlin.kotlin-script-runtime_1.9.0",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk7_1.4.32",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk8_1.8.22",
"@maven//:org.jetbrains.kotlin.kotlin-stdlib-jdk8_1.9.0",
"@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-core_1.6.4",
"@maven//:xmlpull.xmlpull_1.1.3.1",
],
)