Your First Test
This guide walks you through creating your first Revyl test from scratch, then shows how to set up YAML-based test management for your team.Part A: Create and Run a Test
1. Install the CLI
2. Authenticate
3. Initialize your project
- Detects your build system (Expo, Gradle, Xcode, Flutter, React Native)
- Creates
.revyl/config.yaml - Walks you through creating apps, uploading a build, and creating your first test
4. Write a YAML test file
Create a file calledlogin-smoke.yaml:
test.metadata.name— the test name (must be unique in your org)test.metadata.platform—iosorandroidtest.build.name— must match a Revyl app name exactly. Check withrevyl app list.test.blocks— ordered list of steps
5. Validate the YAML
--json for machine-readable output in CI.
6. Create the test
- Validates the YAML
- Copies it to
.revyl/tests/login-smoke.yaml - Creates (or updates) the remote test
- Writes
.revyl/config.yamlif it doesn’t exist yet
7. Run the test
8. Iterate
Edit.revyl/tests/login-smoke.yaml, then push and re-run:
Part B: YAML as Source of Truth
For teams that want test definitions version-controlled alongside code.Commit .revyl/tests/ to git
The .revyl/tests/ directory is not gitignored by default. These YAML files are your source of truth — commit them.
Daily sync pattern
Check sync status
| Status | Meaning |
|---|---|
synced | Local and remote are identical |
modified | Local changes not yet pushed |
outdated | Remote has newer changes |
local-only | Exists locally but not on remote |
Reconcile when things drift
PR-based test changes
Edit YAML in a feature branch, review the diff in a pull request like any code change. After merge, push to remote:Resolve conflicts
What’s Next
- Dev Loop — fast local verification with hot reload
- YAML Schema — full test file reference
- Advanced Tests — scripts, modules, variables, control flow
- CI/CD Pipeline — run tests in GitHub Actions