Make robolectric-deps.properties public (#92)

Seems this properties files contain essential information that need to be passed from users if they don't have their custom properties files. Make it public so users can declare dependency on it.
1 file changed
tree: bce8655873a57e5a54aca8a6d24dd4bb78c1407c
  1. .bcr/
  2. .github/
  3. bazel/
  4. examples/
  5. tests/
  6. .bazelignore
  7. .bazelrc
  8. .bazelversion
  9. .gitignore
  10. CONTRIBUTING.md
  11. MODULE.bazel
  12. README.md
  13. WORKSPACE
  14. WORKSPACE.bzlmod
README.md

robolectric-bazel

This project provides build rules for integrating Robolectric into Bazel projects.

Releases


Installation

Follow instructions in the release notes from the release you use: https://github.com/robolectric/robolectric-bazel/releases

Usage

In your android_local_test targets in the BUILD files, depend on the Robolectric targets @maven//:org_robolectric_robolectric and @robolectric//bazel:android-all:

android_local_test(
    name = "greeter_activity_test",
    srcs = ["GreeterTest.java"],
    manifest = "TestManifest.xml",
    test_class = "com.example.bazel.GreeterTest",
    deps = [
        ":greeter_activity",
        "@maven//:org_robolectric_robolectric",
        "@robolectric//bazel:android-all",
    ],
)