Session Selection
How Session Selection Works
Section titled “How Session Selection Works”Reccy replays recorded sessions and tracks:
- Lines of code executed
- React components rendered
- Route patterns accessed
From this data, Reccy continuously selects a combination of sessions that collectively cover all distinct code paths—including feature flag branches, conditional logic, and component variants. This curated set forms your test suite.
As your app changes and new sessions are recorded, Reccy automatically updates the selection to cover new features.
Configuring Session Count
Section titled “Configuring Session Count”To adjust the number of sessions:
- Visit your project dashboard
- Select the Selected Sessions tab
- Click Configure
Test runs in Reccy cloud typically complete in under 2 minutes regardless of session count.
Viewing Coverage
Section titled “Viewing Coverage”To see what your tests cover:
- Go to your project page
- Click View coverage & snapshots
You’ll see:
- Screens covered, organized by route
- Sub-variants (same screen, different states or visible components)
- Per-file coverage (if source maps are provided)
Manual Session Selection
Section titled “Manual Session Selection”Automatic selection is recommended, but you can pin specific sessions:
- Navigate to the Sessions tab
- Select a session
- Click Add to selected sessions
Pinned sessions will always run alongside automatically selected sessions.
Why Localhost Sessions Don’t Cause Issues
Section titled “Why Localhost Sessions Don’t Cause Issues”You might worry that sessions from incomplete branches on localhost will cause false failures. Reccy handles this through:
-
Filtering — Session selection algorithms filter out broken sessions that don’t add meaningful coverage
-
Replay-time baselines — Screenshots are taken at replay time, not record time. When you open a PR, Reccy replays sessions against both commits. A session clicking on an unreleased feature will produce identical screenshots on both commits, resulting in no diff.
Handling Stale Network Responses
Section titled “Handling Stale Network Responses”Recorded sessions include the network responses from when they were captured. If you make breaking API changes:
- Old sessions with outdated responses are automatically swapped for newer sessions covering the same code paths
- This ensures tests remain deterministic without manual maintenance