mobiai-ios-testing

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

A guide for writing and running tests in iOS apps, including tests for Swift code, user interfaces, and screen appearance.

In plain words
What is it for?
Use it to create XCTest unit tests, XCUITest interface tests, and snapshot tests that compare an app screen with an expected image.
Why use it?
It helps you choose the right test type and framework, organise test files, and run or debug test suites. This reduces guesswork when checking whether an app works correctly.

Skill for Claude Code

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

Part of the ios plugin — 4 skills shipped together

Good fit Use it to create XCTest unit tests, XCUITest interface tests, and snapshot tests that compare an app screen with an expected image.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arisguimera/mobiai-core/mobiai-ios-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-ios-testing
Clone the repo
git clone --depth 1 https://github.com/ArisGuimera/MobiAI-Core

Made for: Claude Code.

Or install ios, the plugin that ships this one along with the rest of its 4 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-ios-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/arisguimera/mobiai-core/mobiai-ios-testing/github.svg)](https://agentmods.dev/skills/arisguimera/mobiai-core/mobiai-ios-testing)
Your own site
<a href="https://agentmods.dev/skills/arisguimera/mobiai-core/mobiai-ios-testing"><img src="https://agentmods.dev/badge/skills/arisguimera/mobiai-core/mobiai-ios-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-ios-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/arisguimera/mobiai-core/mobiai-ios-testing"><img src="https://agentmods.dev/badge/skills/arisguimera/mobiai-core/mobiai-ios-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,173 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.00031 $0.01173
Opus 5 $0.00015 $0.00587
Sonnet 5 $0.00006 $0.00235
Haiku 4.5 $0.00003 $0.00117

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

Security

Grade A, and why

mobiai-ios-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 12d 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/ios/skills/mobiai-ios-testing/SKILL.md · 205 lines

How it starts

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

iOS Testing

Community contribution welcome! Help improve this skill with your XCTest patterns, mocking strategies, and testing tips.

Guide to writing and running tests in iOS projects.

When to Use

  • Writing unit tests for Swift code
  • Setting up test infrastructure
  • Running and debugging test suites

Test Types

Type Target Framework Speed
Unit MyAppTests XCTest Fast
UI MyAppUITests XCUITest Slow
Snapshot MyAppTests SnapshotTesting (pointfree) Medium

Unit Testing (XCTest)

File Location

  • Source: MyApp/Feature/MyViewModel.swift
  • Test: MyAppTests/Feature/MyViewModelTests.swift

Test Structure

import XCTest
@testable import MyApp

final class MyViewModelTests: XCTestCase {

    private var sut: MyViewModel!
    private var mockRepository: MockRepository!

    override func setUp() {
        super.setUp()
        mockRepository = MockRepository()
        sut = MyViewModel(repository: mockRepository)
    }

    override func tearDown() {
        sut = nil
        mockRepository = nil
        super.tearDown()
    }

    func testLoadData_setsStateToSuccess_whenRepositoryReturnsData() async {
        // Given
        mockRepository.stubbedResult = [Item(id: "1", name: "Test")]

        // When
        await sut.loadData()

        // Then
        XCTAssertEqual(sut.state, .success([Item(id: "1", name: "Test")]))
    }

    func testLoadData_setsStateToError_whenRepositoryThrows() async {
        // Given
        mockRepository.stubbedError = NSError(domain: "", code: -1)

        // When
        await sut.loadData()

        // Then
        if case .error = sut.state {
            // Expected
        } else {
            XCTFail("Expected error state")
        }
    }
}

Naming Conventions

// Pattern: testMethodName_expectedBehavior_whenCondition
func testCalculateTotal_returnsZero_whenCartIsEmpty() { ... }
func testFormatPrice_throws_whenAmountIsNegative() { ... }

Read the full file on GitHub · 205 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. 12d ago First seen · 205 lines · 31 tokens per session scan A 08e8452465f3

Subscribe to this mod's changes

mobiai-ios-testing is a skill published in the GitHub repository ArisGuimera/MobiAI-Core (453 stars, last pushed 5d ago), licensed MIT. It adds 31 tokens to every session and 1,173 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

swift-protocol-di-testing

Protocol-based dependency injection for testable Swift code — mock file system, network, and external APIs using focused protocols and Swift Testing.

affaan-m/ECC · 32 tokens

android-unit-test

Guide for writing and converting Chromium Android unit tests across host Robolectric (chromejunittests) and on-device (chromepublicunittestapk) suites.

chromium/chromium · 36 tokens

flutter-add-widget-test

Implement a component-level test using WidgetTester to verify UI rendering and user interactions (tapping, scrolling, entering text). Use when validating that a specific widget displays correct data and responds to events as expected.

flutter/agent-plugins · 48 tokens

react-native-testing

Write tests using React Native Testing Library (RNTL) v13 and v14 (@testing-library/react-native). Use when writing, reviewing, or fixing React Native component tests. Covers: render, screen, queries (getBy/getAllBy/queryBy/findBy), Jest matchers, userEvent, fireEvent, waitFor, and async patterns. Supports v13 (React…

callstack/react-native-testing-library · 134 tokens

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

maui-unit-testing

Add MAUI app tests around ViewModels, services, platform abstractions, and unit/integration/device boundaries. USE FOR: xUnit, avoiding MauiProgram.CreateMauiApp in unit tests, fakes/mocks, injectable Essentials interfaces, PlatformNotSupportedException, navigation/data services, AppProjectReference, device-test…

dotnet/maui-labs · 84 tokens