Mobile Testing Guide
A guide to testing mobile applications with comprehensive unit, integration, and end-to-end testing strategies.
Usage
Ask about mobile testing frameworks, E2E testing, test strategies, or TDD for mobile.
Examples
- "Set up Detox for end-to-end React Native testing"
- "How do I write unit tests for a Flutter ViewModel?"
- "Create an E2E test for a login flow"
Guidelines
- Follow the testing pyramid with many unit tests and fewer E2E tests
- Test on real devices for E2E tests, simulators for unit tests
- Use page object pattern for maintainable E2E tests
- Mock native modules in unit tests
- Run E2E tests in CI with dedicated device farms