blob: 3760e9f42d2b88278e9a1d0fa5992c8982b82593 [file] [log] [blame]
load("//tools/base/bazel:bazel.bzl", "iml_module")
load("//tools/base/bazel:maven.bzl", "maven_pom")
load("//tools/base/bazel:kotlin.bzl", "kotlin_library", "kotlin_test")
iml_module(
name = "studio.testutils",
srcs = ["src/main/java"],
iml_files = ["testutils.iml"],
tags = ["managed"],
test_data = ["//prebuilts/studio/sdk:platforms/latest"],
test_srcs = ["src/test/java"],
visibility = ["//visibility:public"],
# do not sort: must match IML order
deps = [
"//tools/base/common:studio.common[module]",
"//tools/idea/.idea/libraries:JUnit4",
"//tools/idea/.idea/libraries:easymock-tools",
"//tools/idea/.idea/libraries:mockito",
"//tools/idea/.idea/libraries:truth",
"//tools/idea/.idea/libraries:dexlib2",
"//tools/idea/.idea/libraries:jimfs",
"//tools/idea/.idea/libraries:asm-tools",
"//tools/idea/.idea/libraries:KotlinJavaRuntime",
],
)
kotlin_library(
name = "tools.testutils",
srcs = ["src/main/java"],
pom = ":pom",
visibility = ["//visibility:public"],
deps = [
"//tools/base/annotations",
"//tools/base/common:tools.common",
"//tools/base/third_party:com.google.jimfs_jimfs",
"//tools/base/third_party:com.google.truth_truth",
"//tools/base/third_party:junit_junit",
"//tools/base/third_party:org.easymock_easymock",
"//tools/base/third_party:org.mockito_mockito-core",
"//tools/base/third_party:org.ow2.asm_asm",
"//tools/base/third_party:org.smali_dexlib2",
],
)
maven_pom(
name = "pom",
artifact = "testutils",
group = "com.android.tools",
source = "//tools/buildSrc/base:base_version",
)
kotlin_test(
name = "tools.tests",
srcs = ["src/test/java"],
data = ["//prebuilts/studio/sdk:platforms/latest"],
jvm_flags = ["-Dtest.suite.jar=tools.tests.jar"],
test_class = "com.android.testutils.JarTestSuite",
deps = [
":tools.testutils",
"//tools/base/annotations",
"//tools/base/common:tools.common",
"//tools/base/third_party:com.google.jimfs_jimfs",
"//tools/base/third_party:com.google.truth_truth",
"//tools/base/third_party:org.jetbrains.kotlin_kotlin-stdlib-jre8",
"//tools/base/third_party:org.jetbrains.kotlin_kotlin-test",
"//tools/base/third_party:org.smali_dexlib2",
],
)