Latest in AI
CodeRabbit Verify CLI: How to Test an App Change Before Opening a PR
Capture the right local diff, test a benign user path in the hosted sandbox, and distinguish a successful run from a skipped one.
A form can compile, pass review, and still fail to show the success state when someone clicks Save. The CodeRabbit CLI 0.9.7 release brings Verify to the checkout, so you can try that flow against a running app before opening a pull request.
The runtime is hosted, not the dev server running on your laptop. I would start with a small app change you can verify on fake data, then check that the hosted run actually saw the patch you meant to test.
Set up the app inside the sandbox
Use CLI 0.9.7 or later and check that the Git remote corresponds to a repository connected to the organization you selected. The CLI docs also require the server's default-branch anchor commit to exist locally. If the tool reports it missing, fetch the remote and retry rather than changing the base to make the warning disappear.
Set up a working Verify execution environment. CodeRabbit distinguishes preparing the environment from starting the app in each run. The setup runs at preparation; the startup script launches the application inside the sandbox. A localhost URL in the test instructions points to that sandbox, not your laptop.
Don't give a UI check production data or production credentials. For a settings screen, create a synthetic account and use an isolated test database. Keep the repo and its hosted execution subject to your team's normal approval and access rules.
Capture the change you intend to test
The default captures tracked committed and uncommitted changes. Narrow it when an unrelated edit shares the checkout. For just uncommitted tracked changes, the documented selector is:
coderabbit verify --uncommitted
Use --include-untracked only after checking what it adds. Inspect Git status and keep unrelated fixtures, credentials and scratch files out of the scope. The CLI captures the selected changes once. If you change the form as the run starts, that later edit isn't in the test.
The documented capture caps are 100 MiB before compression and 16 MiB compressed. Selected submodules and working-tree symlinks aren't supported. If an app boot depends on those files, fix the supported test setup before trying to make a screenshot explain the missing dependency.
Give it one observable scenario
For a profile form, specify the starting route, an approved test user, a value to change and an expected result. Check that the button completes, the new value appears after reload, and the old value doesn't return. A screenshot of the button isn't evidence that the value persisted.
Use this alongside your ordinary deterministic tests and diff review. The CLI has a separate coderabbit review command for reviewing code. A hosted scenario may test whether the happy path works, while your tests still need to cover edge cases.
Don't let no changes become a passing test
CodeRabbit documents exit code 0 for a pass, 2 for a failure and 1 for an incomplete or unavailable run. An empty scope also exits 0. If you automate the check, read the result as well as the exit code. Treat skipped as skipped and make incomplete runs visible so they cannot silently count as success.
Verify is free during the beta once the repository is configured, according to the release notes. That is not a commitment on future pricing. Judge the pilot by how often it provides clear evidence about the exact change, not by how many checks report green.
I help AI teams explain how their products work in practice. Book a 30-minute call.