tree: 3283bc9af69ad3b8f09ab5b520bd6188c071cc97
  1. src/
  2. .bazelversion
  3. BUILD
  4. maven_install.json
  5. MODULE.bazel
  6. README.md
examples/android_local_test/README.md

Robolectric test example using android_local_test

To run the Robolectric test in this workspace:

$ bazel test //src/test:main_activity_test

Roboelectric tests in Bazel requires special setup to generate a file called robolectric-deps.properties, containing information about android-all jars and their locations. You can find this setup in the robolectric-bazel/bazel/BUILD.