aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar dannark <dannark@google.com>2018-12-31 08:17:04 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-12-31 08:19:06 -0800
commit2ef5d2170e0558468b0c0e989b910fbb52e95368 (patch)
tree1d72840b73d97f1a32e81bd29c961f44b04ea1cc /tools
parent192583d5fbf49f43bc7646e5750647362dfaecfe (diff)
Add android_local_test rule to Bazel.
This rule enables testing android_librarys locally in the jvm (as opposed to on a device). To use this rule with robolectric (robolectric.org), add the following to your WORKSPACE file: http_archive( name = "bazel_android", url = "...", ) load("@bazel_android//:setup_robolectric.bzl", "setup_robolectric") setup_robolectric() and then an android_local_test rule would need to add: "@bazel_android//:robolectric", to its dependencies. android_local_test( name = "MyTest", srcs = ["MyTest.java"], deps = [ "//java/app:lib", "@bazel_android//:robolectric", ], ) RELNOTES[NEW]: New android test rule, android_local_test. PiperOrigin-RevId: 180438995
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions