| name | test |
| description | Run generated test flows against the app in the simulator using Grantiva. Use after /swift-assist:make-tests to execute and validate your user flows. |
| argument-hint | [--flow=<name>] [--all] |
Swift Assist: Test
Run the generated flow YAML files against the app in the simulator using grantiva run.
Usage
/swift-assist:test
/swift-assist:test --flow=login
/swift-assist:test --all
Command Options
--flow=<name>: Run a specific flow (matches filename in flows/ directory)
--all: Run all flows sequentially
Prerequisites
- App must be running in the simulator
- Flow YAML files must exist (run
/swift-assist:make-tests first)
If no flows exist:
No flow files found in flows/. Run /swift-assist:make-tests first.
What This Command Does
Phase 1: Discover Flows
-
List available flow files:
ls flows/*.yaml 2>/dev/null
-
If --flow specified, find matching file
-
If --all specified, collect all non-underscore-prefixed flows (skip _setup-*.yaml helper flows)
-
If neither specified, show available flows and ask which to run
Phase 2: Run Flows via Grantiva
For each flow, execute it using grantiva run:
grantiva run flows/<flow-name>.yaml
Phase 3: Report Results
After all flows complete:
Test Execution Report
=====================
Flows run: 5 | Passed: 4 | Failed: 1
onboarding.yaml PASS
login.yaml PASS
settings.yaml FAIL
profile.yaml PASS
checkout.yaml PASS
Report any error output from failed flows so the user can diagnose and fix.
Important Rules
- If a flow fails, continue running remaining flows (don't stop on first failure)
- Do not modify flow files during execution