jperezdelreal/gymbro/android-testing
Claude Code and agent skill by jperezdelreal/gymbro
- community
Checking that the SKILL.md file is still in the repository.
Comprehensive testing strategy involving Unit, Integration, Hilt, and Screenshot tests.
Install
npx vskill@latest install jperezdelreal/gymbro/android-testingSKILL.md
The same SKILL.md was published earlier as jperezdelreal/gymbro/android-testing.
Android Testing Strategies
Source: new-silvermoon/awesome-android-agent-skills — Eclipse Public License 2.0
This skill provides expert guidance on testing modern Android applications, inspired by "Now in Android". It covers Unit Tests, Hilt Integration Tests, and Screenshot Testing.
Testing Pyramid
- Unit Tests: Fast, isolate logic (ViewModels, Repositories).
- Integration Tests: Test interactions (Room DAOs, Retrofit vs MockWebServer).
- UI/Screenshot Tests: Verify UI correctness (Compose).
Dependencies (libs.versions.toml)
Ensure you have the right testing dependencies.
Screenshot Testing with Roborazzi
Screenshot tests ensure your UI doesn't regress visually. NiA uses Roborazzi because it runs on the JVM (fast) without needing an emulator.
Setup
- Add the plugin to
libs.versions.toml:
``toml [plugins] roborazzi = { id = "io.github.takahirom.roborazzi", version.ref = "roborazzi" } ``
- Apply it in your module's
build.gradle.kts:
``kotlin plugins { alias(libs.plugins.roborazzi) } ``
Writing a Screenshot Test
Hilt Testing
Use HiltAndroidRule to inject dependencies in tests.
Running Tests
- Unit:
./gradlew test - Screenshots:
./gradlew recordRoborazziDebug(to record) /./gradlew verifyRoborazziDebug(to verify)
GymBro-Specific Notes
- ViewModel tests should verify state emission for workout flows (log set → state updates → effect emitted).
- Room DAO tests should cover workout history queries and offline-first sync edge cases.
- Screenshot tests are especially important for the workout logging UI — it's the most-used screen and must be pixel-perfect.
- Use Turbine for Flow testing (test state emission sequences from ViewModels).
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.squad/skills/android/android-testing/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jperezdelreal/gymbro/android-testing)