diff options
author | Brad Corso <bcorso@google.com> | 2021-02-22 14:26:31 -0800 |
---|---|---|
committer | Dagger Team <dagger-dev+copybara@google.com> | 2021-02-22 14:27:45 -0800 |
commit | 73628bcd2e3a05430b6873d676117a61512f8476 (patch) | |
tree | 773e113a59d818fdd5d12a41d7906797e5a87247 /test_defs.bzl | |
parent | 2a007af0e265d9e6b05a5c63ddbb1e3f62a52997 (diff) | |
download | dagger2-73628bcd2e3a05430b6873d676117a61512f8476.tar.gz |
Enable remaining dagger.android and dagger.hilt tests.
Note: previously, dagger.android tests have existed in GitHub, but they were run as a noop in our GitHub Actions because robolectric tests were not enabled. This CL enables them.
RELNOTES=N/A
PiperOrigin-RevId: 358903809
Diffstat (limited to 'test_defs.bzl')
-rw-r--r-- | test_defs.bzl | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/test_defs.bzl b/test_defs.bzl index d16ad3660..6f2308877 100644 --- a/test_defs.bzl +++ b/test_defs.bzl @@ -59,11 +59,21 @@ def GenRobolectricTests( test_javacopts = None, functional = True, manifest_values = None): - # TODO(ronshapiro): enable these with these instructions: - # https://docs.bazel.build/versions/master/be/android.html#android_local_test_examples - # We probably want to import all of Robolectric's dependencies into bazel-common because there - # are some differences (i.e. we both provide Guava). - pass + deps = (deps or []) + ["//:android_local_test_exports"] + _GenTests( + native.android_library, + native.android_local_test, + name, + srcs, + deps, + test_only_deps, + plugins, + javacopts, + lib_javacopts, + test_javacopts, + functional, + test_kwargs = {"manifest_values": manifest_values}, + ) def _GenTests( library_rule_type, |