Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robolectric/robolectric-bazel
Bazel support for Robolectric (https://github.com/robolectric/robolectric)
https://github.com/robolectric/robolectric-bazel
Last synced: 11 days ago
JSON representation
Bazel support for Robolectric (https://github.com/robolectric/robolectric)
- Host: GitHub
- URL: https://github.com/robolectric/robolectric-bazel
- Owner: robolectric
- Created: 2018-09-24T21:28:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-03T19:58:11.000Z (about 1 month ago)
- Last Synced: 2024-12-03T20:28:00.032Z (about 1 month ago)
- Language: Starlark
- Homepage:
- Size: 143 KB
- Stars: 15
- Watchers: 10
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# 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:
## 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`:```python
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",
],
)
```## Publishing Releases
A new release can be published by just pushing a tag.
Once the tag is pushed, GitHub Actions will build, test, and publish a release to both GitHub releases and the BCR.
Example:
```console
git tag 4.11.1
git push origin 4.11.1
```