Reference
build-and-test
Build the app (local or EAS), install on the simulator or emulator, start Metro, then run the full 7-step test protocol on the specified feature.
/rn-dev-agent:build-and-test <description>/rn-dev-agent:build-and-test --eas [profile] <description>Examples
Section titled “Examples”/rn-dev-agent:build-and-test shopping cart -- local build, then test add-to-cart flow/rn-dev-agent:build-and-test --eas development login screen -- install EAS build, test auth/rn-dev-agent:build-and-test --eas preview payment flow -- test a specific EAS profileBuild Modes
Section titled “Build Modes”| Mode | When | What happens |
|---|---|---|
| Local dev build | Default (no --eas flag) | Runs literal pnpm ios or pnpm android through confirmed session integration |
| EAS artifact | --eas flag provided | Downloads from EAS, installs on simulator |
| Skip build | App already running | Proceeds directly to testing |
What Happens
Section titled “What Happens”- Resolve authority — require the intended ready session and exact device
- Check if app is running — use passive
cdp_statusfor the bound target - Build/install if needed — local integrated build or EAS artifact download
- Start Metro on the session’s allocated port
- Run the 7-step test protocol — environment check, understand feature, plan test, navigate, execute + verify, edge cases, generate test file
When to Use
Section titled “When to Use”- Testing a feature on a fresh build
- After native dependency changes that require a rebuild
- When installing an EAS build artifact for the first time
Prerequisites
Section titled “Prerequisites”- iOS Simulator or Android Emulator booted
- Expo project with
app.jsonorapp.config.js/ts - For EAS builds:
eas-cliinstalled and logged in - For local builds: Xcode (iOS) or Android SDK (Android)