From aj-geddes-useful-ai-prompts-4
Provides testing strategies for iOS and Android mobile apps covering unit, UI, integration, and performance tests with Detox, Appium, and XCTest.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aj-geddes-useful-ai-prompts-4:mobile-app-testingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Overview](#overview)
Implement comprehensive testing strategies for mobile applications including unit tests, UI tests, integration tests, and performance testing.
Minimal working example:
// Unit test with Jest
import { calculate } from "../utils/math";
describe("Math utilities", () => {
test("should add two numbers", () => {
expect(calculate.add(2, 3)).toBe(5);
});
test("should handle negative numbers", () => {
expect(calculate.add(-2, 3)).toBe(1);
});
});
// Component unit test
import React from "react";
import { render, screen } from "@testing-library/react-native";
import { UserProfile } from "../components/UserProfile";
describe("UserProfile Component", () => {
test("renders user name correctly", () => {
const mockUser = { id: "1", name: "John Doe", email: "[email protected]" };
render(<UserProfile user={mockUser} />);
expect(screen.getByText("John Doe")).toBeTruthy();
});
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| React Native Testing with Jest & Detox | React Native Testing with Jest & Detox |
| iOS Testing with XCTest | iOS Testing with XCTest |
| Android Testing with Espresso | Android Testing with Espresso |
| Performance Testing | Performance Testing |
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin aj-geddes-useful-ai-prompts-4Guides mobile app testing strategies: unit tests with Jest/XCTest/JUnit, UI automation/integration with Detox/Espresso/Appium, E2E flows. For test setup, device farms, flaky tests.
Execute mobile app testing on iOS and Android emulators/simulators. Handles UI interactions, gestures, and platform-specific behaviors using Appium, Detox, XCUITest, Espresso, or Maestro.
Designs and implements a full mobile testing strategy — unit, widget/component, E2E, API mocking, snapshot, CI integration, and flaky test management for React Native, Flutter, and iOS.