| name | testing |
|---|---|
| description | Use for JVM unit tests, Robolectric, AndroidX Test, and JaCoCo in contentstack-android. |
- Adding tests under
contentstack/src/test/ - Debugging JaCoCo or unit-test-only failures
- Prefer
testDebugUnitTestfor fast feedback; Robolectric enables Android APIs on JVM where configured.
androidTestexists for on-device tests—run on emulator/CI when changing UI-adjacent or integration paths.
- Debug builds enable
testCoverageEnabled—JaCoCo outputs feed into reporting tasks defined in the modulebuild.gradle.
- Use
MockWebserverand fixtures for HTTP; avoid embedding real stack credentials in the repo.