Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/utzcoz/robolectric-offline-sample
The sample of using Robolectric's offline mode
https://github.com/utzcoz/robolectric-offline-sample
robolectric
Last synced: 24 days ago
JSON representation
The sample of using Robolectric's offline mode
- Host: GitHub
- URL: https://github.com/utzcoz/robolectric-offline-sample
- Owner: utzcoz
- License: apache-2.0
- Created: 2023-11-11T05:58:28.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T10:46:27.000Z (about 2 months ago)
- Last Synced: 2024-09-16T11:41:04.363Z (about 2 months ago)
- Topics: robolectric
- Language: Kotlin
- Homepage:
- Size: 191 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# robolectric-offline-sample
This projects demonstrates how to use Robolectric's offline mode with pre-downloaded android-all
jars. We can run `./gradlew downloadAllRobolectricJars` to download necessary android-all jars for
Robolectric into `robolectric-jars/preinstrumented` directory, and then we can run Robolectric
tests directly with pre-downloaded jars.When you update a new Robolectric version, please read the Robolectric code, and find all necessary
android-all jar's dependencies, and update configuration of `robolectric-jars/build.gradle.kts`.This repository doesn't contain any android-all jars, so you need to run
`./gradlew downloadAllRobolectricJars` to init android-all jars before running any tests.Some scripts are powered by [GitHub Copilot Chat](https://docs.github.com/en/copilot/github-copilot-chat/using-github-copilot-chat-in-your-ide).