
Capacitor Testing
Testing guide for Capacitor apps covering web unit tests, Appium E2E, native plugin tests, and device verification.
- CCM score
- 66 of 100
- skills.sh installs
- 1.4K
- GitHub stars
- 79
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers three test layers: Vitest and Playwright for the web app, native plugin tests in Swift and JUnit, and Appium E2E with WebView context switching
- Includes device verification steps with
xcrun simctl,xcrun devicectl,adb, andnpx cap run --urlfor live reload on Capacitor 9 - Enforces a layer choice so the cheapest test that can catch the bug runs first, and mocks plugins at the package boundary
- Designed for teams testing Capacitor mobile apps and plugins that need guidance on mocking, native test migration, and CI setup
Install
$ npx -y skills add cap-go/capgo-skills --skill capacitor-testing -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Testing Capacitor Apps and Plugins
A Capacitor app has three layers to test: the web app (most logic), the native bridge and plugins (Swift/Kotlin), and the running app on a device. Pick the cheapest layer that can catch the bug.
When to Use
TRIGGER when:
- Adding unit, component or E2E tests to a Capacitor app
- Mocking Capacitor or plugin APIs in Vitest / Jest
- Writing or modernizing native unit tests for a plugin (Swift Testing, XCTest, JUnit)
- Verifying a change on a simulator, emulator or device ("test this", "does it work", "check on device")
- E2E tests that cannot find web elements in the app (WebView context)
- Setting up test jobs in CI
Do not use:
- Reading device or crash logs:
ios-android-logs - Safari Web Inspector / Chrome DevTools debugging:
debugging-capacitor - Build, signing and release pipelines:
capacitor-ci-cd - App Intents tests:
capacitor-app-intents(AppIntentsTesting)
Choose the layer
Details
- Repository
- github.com/cap-go/capgo-skills
- Categories
- Testing & QA, Mobile Apps
- First seen
- Jun 3, 2026
More from cap-go/capgo-skills
All 41- Capacitor Deep Linking1.4K
- Ios Android Logs1.4K
- Capacitor Security1.4K
- Capacitor Performance1.3K
- Capacitor Accessibility1.3K
- Capacitor App Store1.3K
- Capacitor Splash Screen1.2K
- Capacitor Push Notifications1.2K
- Capacitor Offline First1.2K
- Capacitor Keyboard1.1K
- Capacitor Ci Cd1.1K
- Tailwind Capacitor1.1K
- Capacitor Apple Review Preflight1K
- Capacitor Mcp1K
- Framework To Capacitor956
- Capgo Live Updates943
- Konsta Ui918
- Cocoapods To Spm881
- Capacitor App Upgrades859
- Cordova To Capacitor851
- Capgo Cli Usage817
- Capacitor Plugin Upgrades815
- Capacitor Plugin Spm Support800
- Capgo Native Builds798
Similar to Capacitor Testing
More Testing & QA
debugging-capacitorcap-go/capgo-skills1.5K installsDiagnoses and fixes Capacitor iOS and Android runtime bugs using WebView, native, and OS-level inspection.
mobile-app-testingsecondsky/claude-skills491 installsTesting guide covering unit, integration, and E2E layers for React Native, iOS, and Android apps.
capacitor-performancecap-go/capgo-skills1.3K installsPerformance diagnosis and fixes for Capacitor apps, covering startup, WebView stability, bridge payloads, and profiling tools.
vue-testing-best-practicesantfu/skills17.2K installsTesting guide for Vue.js components covering Vitest, Vue Test Utils, mocking, and Playwright E2E tests.
e2e-testingai-dashboad/flutter-skill265 installsAI-driven UI testing that drives running apps across 8 platforms through natural-language MCP tool calls.