We got your code, covered!
summary
Shows how to get real React Native coverage by instrumenting app.tsx, enabling coverage only in dev builds, and sending coverage snapshots to a simple coverage server on app background/kill; uses NYC/Istanbul to merge per-device JSON files (demo runs ~200 cases across parallel phones, producing multiple files), a Node script consolidates into .nyc_output and generates an HTML report with per-line red/green results. Targets 75% front end and 85% back end thresholds, notes hybrid support and iOS tooling limitations.
AI-written summary · about
chapters (8)
- 0:00Code coverage in React Native
- 2:49What is code coverage
- 4:53Coverage attributes and tools
- 6:58Integrating NYC Istanbul
- 9:08Demo setup and testing
- 12:11Generating coverage reports
- 14:45Interpreting coverage metrics
- 15:47Q&A
related talks
40mReact Native is Coming – the story of hybrid mobile application testing
24mReact Native - Success case study
26mIntegration Testing for React Native Apps
25mRethinking JavaScript Test Coverage
14mKover Your Code: A Practical guide to Android Test Coverage
47mEverything I know about writing quality software
19mVisual Regression Testing in React Native
18mTesting your React Native App - The Cypress way
