https://github.com/oliverspryn/android-unit-tests
Companion code for my Medium.com article: Writing a Fully Unit Testable Android App
https://github.com/oliverspryn/android-unit-tests
android coverage dagger2 example jacoco junit medium-article unit-testing
Last synced: 7 months ago
JSON representation
Companion code for my Medium.com article: Writing a Fully Unit Testable Android App
- Host: GitHub
- URL: https://github.com/oliverspryn/android-unit-tests
- Owner: oliverspryn
- License: mit
- Created: 2019-10-29T14:18:02.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2019-11-01T16:33:57.000Z (about 6 years ago)
- Last Synced: 2024-12-26T08:42:10.545Z (about 1 year ago)
- Topics: android, coverage, dagger2, example, jacoco, junit, medium-article, unit-testing
- Language: Kotlin
- Homepage:
- Size: 135 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Android Unit Tests
[](https://dev.azure.com/oliverspryn/android-unit-tests/_build/latest?definitionId=2&branchName=develop) [](https://www.codacy.com/manual/oliverspryn/android-unit-tests?utm_source=github.com&utm_medium=referral&utm_content=oliverspryn/android-unit-tests&utm_campaign=Badge_Grade) [](https://codeclimate.com/github/oliverspryn/android-unit-tests/maintainability) [](https://coveralls.io/github/oliverspryn/android-unit-tests) [](https://snyk.io/test/github/oliverspryn/android-unit-tests)
Companion code for my Medium.com article: [Writing a Fully Unit Testable Android App](https://medium.com/@oliverspryn/writing-a-fully-unit-testable-android-app-90cd0310f18f)
## Running the Application
To build this application, simply run:
```bash
./gradlew assembleDebug
```
The output is shown in `app/build/outputs/apk/debug/app-debug.apk`
Running unit tests and extracting the coverage report is also just as easy:
```bash
./gradlew test
```
The coverage reports appear in `app/build/reports/jacoco/jacocoTestReport`