arisguimera/mobiai-core/mobiai-android-testing
Claude Code and agent skill by arisguimera/mobiai-core
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when writing or running tests in an Android project — unit tests, UI tests, choosing the right framework and patterns.
Install
npx vskill@latest install arisguimera/mobiai-core/mobiai-android-testingSKILL.md
Android Testing
Comprehensive guide to writing and running tests in Android projects.
When to Use
- Writing unit tests for Android/Kotlin code
- Setting up test infrastructure
- Running and debugging test suites
- Choosing the right testing approach
Test Types
| Type | Location | Framework | Speed | Uses Device | |
|---|---|---|---|---|---|
| Unit | src/test/ | JUnit + MockK | Fast | No | |
| Integration | src/test/ | JUnit + Robolectric | Medium | No (simulated) | |
| UI / Instrumented | src/androidTest/ | Espresso / Compose Testing | Slow | Yes |
Unit Testing (JUnit + MockK)
Setup
File Location
Mirror the source path:
- Source:
app/src/main/java/com/example/feature/MyViewModel.kt - Test:
app/src/test/java/com/example/feature/MyViewModelTest.kt
Test Structure
MainDispatcherRule (for ViewModel tests)
MockK Cheat Sheet
Flow Testing with Turbine
Compose UI Testing
Setup
Test Structure
Espresso (XML Views)
Running Tests
Common Patterns
Testing Use Cases
Testing Repository with Room
Testing Mapper/Converter Functions
Troubleshooting
Tests pass locally but fail in CI
- Check timezone-dependent tests
- Check tests that depend on system locale
- Check flaky tests with
@FlakyTestor increase timeouts
MockK issues with final classes
Add to src/test/resources/mockk-extensions/io.mockk.ifc:
Coroutine test timing issues
Use advanceUntilIdle() or runCurrent() in runTest blocks.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/android/skills/mobiai-android-testing/SKILL.md
Popularity
- Repository stars
- 391
- Repository forks
- 12
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. 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/arisguimera/mobiai-core/mobiai-android-testing)