capacitor-testing

Automate Capacitor app testing with Vitest, Playwright, and Appium.

58|5|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: capacitor-testing
Source: https://github.com/Cap-go/capgo-skills/tree/main/skills/capacitor-testing
Command: npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Testing Capacitor apps across unit, integration, and end-to-end levels is complex and time-consuming; this guide provides a structured approach to ensure reliability across web and native runtimes.

Core Features & Use Cases

  • Unit Testing: Configure and run unit tests with Vitest, including mocks and coverage reporting.
  • Integration & E2E Testing: Implement integration tests and end-to-end flows using Playwright for web and Appium for native apps.
  • Native Testing & CI: Provide scaffolding for native test suites and CI pipelines to validate iOS and Android builds.

Quick Start

Install the testing dependencies and run the unit tests to boot the starter suite.

Frequently Asked Questions about capacitor-testing

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

FAQPage Schema
How do I set up Capacitor testing for unit, integration, and E2E workflows?

Capacitor testing is structured by configuring Vitest for unit tests, implementing Playwright for web integration and E2E flows, and using Appium for native app validation. This approach ensures reliability across both web and native iOS and Android runtimes.

What's the best way to run E2E tests on Capacitor iOS and Android apps?

The best way to run E2E tests on Capacitor native apps is using Appium to validate iOS and Android builds. This provides cross-platform test strategies and scaffolding for native test suites to automate end-to-end flows effectively.

Does this Capacitor testing workflow support CI pipeline integration?

Yes, this Capacitor testing workflow supports CI pipeline integration. It provides scaffolding and guidance to validate iOS and Android builds within continuous integration environments, ensuring cross-platform reliability during automated deployments.

Can I use Vitest for unit testing in a Capacitor app?

Yes, you can use Vitest for unit testing in a Capacitor app. The workflow includes Vitest configuration, mocking utilities, and coverage reporting to isolate and test web components before running native integration tests.

Why do I need both Playwright and Appium to test my Capacitor app?

You need Playwright and Appium to test your Capacitor app because they target different runtimes. Playwright handles web integration and E2E flows, while Appium specifically automates native testing across iOS and Android platforms.

When should I not use Appium for Capacitor testing?

You should not use Appium for Capacitor testing when you only need to validate web components or run unit tests. For web-only integration and E2E flows, Playwright is the appropriate tool, while Vitest handles isolated unit testing.