<< All versions

Skill v1.0.1

currentAutomated scan100/100
contentstack/contentstack-android/testing

+2 new

──Details
PublishedNovember 2, 2026 at 10:25 PM
Content Hashsha256:afebfb9bec21bc46...
Git SHA628b92c2b307
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 838 B)
SKILL.md838 Bactive
SKILL.md · 32 lines · 838 B

name: testing description: Use for JVM unit tests, Robolectric, AndroidX Test, and JaCoCo in contentstack-android. metadata: version: "1.0.1"


Testing – contentstack-android

When to use

  • Adding tests under contentstack/src/test/
  • Debugging JaCoCo or unit-test-only failures

Instructions

Unit tests

  • Prefer `testDebugUnitTest` for fast feedback; Robolectric enables Android APIs on JVM where configured.

Instrumentation

  • `androidTest` exists for on-device tests—run on emulator/CI when changing UI-adjacent or integration paths.

Coverage

  • Debug builds enable `testCoverageEnabled`—JaCoCo outputs feed into reporting tasks defined in the module build.gradle.

Hygiene

  • Use `MockWebserver` and fixtures for HTTP; avoid embedding real stack credentials in the repo.
← v1.0.0All versions