Installation
1
Install GitHub App
Go to github.com/apps/rehearsal-ai and click Install
2
Select Repositories
Choose which repos should run tests on PRs
3
Create Test Suite
In Rehearsal dashboard, create a test suite for your repo
4
Open a PR
Bot runs tests automatically and posts results as comments
How It Works
- PR opened → Bot detects code changes
- Select tests → Runs relevant tests based on changed files
- Execute → Tests run in cloud browsers
- Report → Results posted as PR comment with pass/fail status
Example PR Comment
Configuration
Control which tests run on which PRs:- Test suites → Group tests by feature area
- Branch rules → Only run on
main,staging, etc. - File patterns → Run tests when specific files change
Free tier: 50 test runs/month. Paid: Unlimited.
Troubleshooting
Bot not commenting on PRs
Bot not commenting on PRs
Check GitHub App permissions. Repo needs “Pull requests: Read & Write” enabled.
Tests failing in CI but passing locally
Tests failing in CI but passing locally
Environment variables might be missing. Add secrets in Rehearsal dashboard settings.
Tests taking too long
Tests taking too long
Split into multiple test suites. Run critical tests first, full suite nightly.