test-agent

Generates unit and UI tests for Android and iOS mobile features.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/XiriGo/ecommerce-mobile --skill test-agent-xirigo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-agent
Source: https://github.com/XiriGo/ecommerce-mobile/tree/main/.claude/skills/test-agent
Command: npx skills add https://github.com/XiriGo/ecommerce-mobile --skill test-agent-xirigo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill automates the creation of comprehensive unit and UI tests for mobile features across both Android and iOS platforms, ensuring code quality and reliability.

Core Features & Use Cases

  • Automated Test Generation: Writes tests for ViewModels, UseCases, Repositories, and UI components.
  • Platform Specificity: Adheres to distinct testing patterns and tools for Android (Kotlin, Compose) and iOS (Swift, SwiftUI).
  • Coverage Assurance: Aims for high test coverage (>= 80% lines, >= 70% branches).
  • Use Case: After developing a new user authentication feature, use this agent to generate all necessary tests for both the Android and iOS versions of the app.

Quick Start

Use the test-agent to write tests for the 'login' feature on both android and ios platforms.

Frequently Asked Questions about test-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate unit tests for Android ViewModel and Repository layers?

Generate Android unit tests by targeting ViewModel, UseCase, and Repository layers using MockK, Turbine, and WebMock. This ensures deterministic testing and adherence to coverage targets for robust code quality.

What is the best way to write UI tests for iOS SwiftUI components?

Write iOS UI tests by utilizing protocol mocks, @Test, URLProtocol, and ViewInspector. This approach automates comprehensive test generation for SwiftUI components, ensuring platform-specific testing standards.

Can I use ComposeTestRule for automated Android UI testing?

Yes, you can use ComposeTestRule for Android UI testing. It is included in the platform-specific tools used to generate comprehensive UI tests for mobile features, ensuring robust and deterministic test execution.

How do I ensure my mobile tests meet branch and line coverage targets?

Ensure mobile test coverage by generating tests that target at least 80% lines and 70% branches. The automated test generation covers all architectural layers to guarantee adherence to these testing standards.

Does automated test generation work for both Android and iOS platforms?

Automated test generation works for both Android and iOS platforms. It adheres to distinct testing patterns and tools for Kotlin Compose and Swift SwiftUI, ensuring comprehensive coverage across both environments.