Work in progress!
Basic Android project template that uses Jacoco, Mockito and JUnit for unit testing and code coverage.
// Runs unit tests
gradlew clean test
gradlew clean check
gradlew clean build
// Prepares code coverage report
gradlew clean jacocoTestReport
- Android unit testing support - http://tools.android.com/tech-docs/unit-testing-support
- Mockito - http://site.mockito.org/mockito/docs/current/org/mockito/Mockito.html
- Using Mockito with Android - https://corner.squareup.com/2012/10/mockito-android.html
- Mockito Verify - http://www.baeldung.com/mockito-verify