mobiai-android-testing

mobiai-android-testing is a skill for Claude Code from ArisGuimera/MobiAI-Core. It costs 30 tokens per session (1,580 once invoked), scanned A, original, MIT.

A guide to testing Android applications, including unit tests, integration tests, and tests that interact with the app interface. It explains where tests belong and which tools fit each type.

In plain words
What is it for?
Use it to write or run Kotlin and Android tests, test ViewModels and asynchronous code, check integrations, and verify screens built with traditional views or Compose.
Why use it?
It helps developers choose tests that match the problem, from fast code checks to slower tests on a device or simulated device.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the android plugin — 10 skills shipped together

Good fit Use it to write or run Kotlin and Android tests, test ViewModels and asynchronous code, check integrations, and verify screens built with traditional views or Compose.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arisguimera/mobiai-core/mobiai-android-testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ArisGuimera/MobiAI-Core --skill mobiai-android-testing
Clone the repo
git clone --depth 1 https://github.com/ArisGuimera/MobiAI-Core

Made for: Claude Code.

Or install android, the plugin that ships this one along with the rest of its 10 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mobiai-android-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/arisguimera/mobiai-core/mobiai-android-testing/github.svg)](https://agentmods.dev/skills/arisguimera/mobiai-core/mobiai-android-testing)
Your own site
<a href="https://agentmods.dev/skills/arisguimera/mobiai-core/mobiai-android-testing"><img src="https://agentmods.dev/badge/skills/arisguimera/mobiai-core/mobiai-android-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mobiai-android-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/arisguimera/mobiai-core/mobiai-android-testing"><img src="https://agentmods.dev/badge/skills/arisguimera/mobiai-core/mobiai-android-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,580 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.01580
Opus 5 $0.00015 $0.00790
Sonnet 5 $0.00006 $0.00316
Haiku 4.5 $0.00003 $0.00158

Measured 9d ago against content hash acbea1c6c89a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

mobiai-android-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/android/skills/mobiai-android-testing/SKILL.md · 262 lines

How it starts

The opening of the file, as written. The whole thing — 262 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

// build.gradle.kts
dependencies {
    testImplementation("junit:junit:4.13.2")
    testImplementation("io.mockk:mockk:1.13.12")
    testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
    testImplementation("app.cash.turbine:turbine:1.2.0") // For Flow testing
}

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

class MyViewModelTest {

    @get:Rule
    val mainDispatcherRule = MainDispatcherRule()

    private val repository: MyRepository = mockk()
    private lateinit var viewModel: MyViewModel

    @Before
    fun setUp() {
        viewModel = MyViewModel(repository)
    }

    @Test
    fun `loadData sets state to Success when repository returns data`() = runTest {
        // Given
        val expected = listOf(Item("1", "Test"))
        coEvery { repository.getData() } returns expected

        // When
        viewModel.loadData()

        // Then
        assertEquals(UiState.Success(expected), viewModel.state.value)
        coVerify(exactly = 1) { repository.getData() }
    }

    @Test
    fun `loadData sets state to Error when repository throws`() = runTest {
        // Given
        coEvery { repository.getData() } throws IOException("Network error")

        // When
        viewModel.loadData()

        // Then
        assertTrue(viewModel.state.value is UiState.Error)
    }
}

Read the full file on GitHub · 262 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 262 lines · 30 tokens per session scan A acbea1c6c89a

Subscribe to this mod's changes

mobiai-android-testing is a skill published in the GitHub repository ArisGuimera/MobiAI-Core (449 stars, last pushed 2d ago), licensed MIT. It adds 30 tokens to every session and 1,580 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

flutter-testing-skill

Generates Flutter widget tests, integration tests, and golden tests in Dart. Supports local execution and TestMu AI cloud for real device testing. Use when user mentions "Flutter", "widget test", "WidgetTester", "testWidgets", "fluttertest", "integrationtest". Triggers on: "Flutter", "widget test", "Dart test"…

LambdaTest/agent-skills · 89 tokens

rn-testing

Testing React Native: Jest with jest-expo / react-native preset, React Testing Library Native, native module mocking, hook testing. Optional sections for Detox (native automation) and Maestro (declarative YAML e2e). Use this skill to: Configure Jest preset based on workflow. Write component tests with…

AratKruglik/claude-sdlc · 163 tokens

testing-reactnative

Testing React Native 0.85+. Use when writing tests, reviewing test coverage, or setting up testing.

TheBeardedBearSAS/claude-craft · 26 tokens

setting-up-host-vs-device-tests

Use this skill to choose between host (Robolectric/JVM) and device (instrumentation) tests for Jetpack Compose, and to configure each correctly. Covers the androidHostTest (a.k.a. src/test/) vs androidDeviceTest (a.k.a. src/androidTest/) source set split, what each flavor can and cannot drive (RenderThread…

skydoves/android-testing-skills · 185 tokens

flutter-tester

Use when creating, writing, fixing, or reviewing tests in a Flutter project. Covers unit tests, widget tests, integration tests, Riverpod provider testing, and Mockito mocking. Provides Given-When-Then patterns, layer isolation strategies, and test setup for GetIt, SharedPreferences, and FakeDatabase.

Harishwarrior/flutter-claude-skills · 65 tokens

ios-testing

Testing patterns for Swift and SwiftUI apps.

TalissonVitorino/kmp-ios-skills · 69 tokens