# How to Test Pull Requests Beyond the Code Review

> AI code reviewers read the diff, so bugs that only appear when the app runs get through. How to add a verifier on the PR preview, when a reviewer alone is enough, and how to run both on one PR.

Source: https://qa.tech/blog/test-pull-requests-beyond-code-review · Published: 2026-11-23

---
If pull requests still ship bugs after the review bot approves them, another reviewer rarely fixes it. The tools that help run the change in a working app and check what a user would see: reviewers with execution built in, tests your coding agent writes into the repo, and independent testing of the PR's preview deployment.

Your coding agent opens a PR in minutes. Checking that the change works for a user is still the slow part. This guide groups the options by what each one verifies and shows how to run a reviewer and a verifier on the same PR.

> **TL;DR**
>
> - CodeRabbit, Greptile and most review bots read your code.
> - Greptile's TREX runs your branch in a sandbox it builds, which is a real step past reading.
> - Testing the deployed preview in a browser, by what shows on screen, with a system that did not write the change, covers what a code reader cannot.
> - The setup that holds up keeps a reviewer on the diff and adds a verifier on the running product.

## What a code reviewer sees, and what it can't

A CTO we spoke to in October runs CodeRabbit, Cursor Bugbot, Codex review and his own model reviews on every pull request, then a human review, and still tests in a QA environment before production. His team merged close to 1,500 PRs that month. On a heavy shipping day the bottleneck was CodeRabbit's rate limit of ten reviews an hour, and the stack of reviewers still ended in a manual pass through QA.

[CodeRabbit](https://www.coderabbit.ai/) reviews the diff with a language model and [runs linters and security scanners](https://docs.coderabbit.ai/tools/) in a sandbox. [Greptile](https://www.greptile.com/) indexes the whole repository, so it can spot a change that breaks a caller three folders away, and with [TREX](https://www.greptile.com/docs/trex/overview) turned on it starts your app in a sandbox built from your setup script and clicks through the flows it decides the change affects.

Both earn their place. In Faros's [AI Engineering Report Q3 2026](https://www.faros.ai/blog/ai-speed-trap-takeaways), covering 22,000 developers across 4,000 teams, many companies run AI review on 50 to 80% of PRs, and heavy users see faster first reviews and lower change failure rates. Faros calls the finding correlational.

What none of them see is the product running on your infrastructure. A pull request on [our demo CRM](https://github.com/QAdottech/acme-signal/pull/46) added a health badge to deals. The badge rendered on the pipeline board and on the deals list and was missing from the deal's own page. Every diff reviewer would pass that PR, because the diff was fine and the bug was in what a user sees.

## Why review alone doesn't hold for agent-written code

Coding agents write solid code and plenty of unit tests. Whether the running app still works for a user is a different question, and the agent that wrote the change is a poor judge of it. If it misread the ticket, its test agrees with the misreading, and both pass.

METR [measured this in March 2026](https://metr.org/notes/2026-03-10-many-swe-bench-passing-prs-would-not-be-merged-into-main/): maintainers reviewed AI pull requests that had already passed a benchmark's automated tests, and roughly half would not have been merged into main.

The human half of review is wearing thin at the same time. A senior engineer at a mobility company told us in November that his team's median time to first review is 1.2 hours and climbing, and that the number flatters the reviews behind it. People have stopped commenting because, as he put it, the AI might be better than them, so why say anything. Faros's Q3 data shows the same drift across the industry: time in QA up 300.6%, PRs merged with no review at all up 76.3%.

The full model is in [the four layers of verifying coding agent work](https://qa.tech/blog/how-to-verify-coding-agent-work).

## The options, grouped by what they verify

| **Category** | **Examples** | **What it checks** | **Best for** | **Limits** |
| --- | --- | --- | --- | --- |
| Independent testing on the PR preview | QA.tech ([PR testing](https://qa.tech/product/pr-testing)), [QA Wolf](https://www.qawolf.com/) | The deployed preview, in a browser, by a system that did not write the change | Teams with a high release cadence and many agent PRs | Needs a preview environment, or staging after merge |
| Reviewers with execution | [Greptile TREX](https://www.greptile.com/docs/trex/overview), [Vercel Agent](https://vercel.com/docs/agent/pr-review) | TREX: your branch in a sandbox it builds. Vercel: its own suggested patches against your build and tests | One vendor for review plus a runtime signal | The sandbox is not your deployed preview; the reviewer picks the flows unless you pin them |
| Agent-written tests in your repo | [Momentic](https://momentic.ai/), browser tools such as [Chrome DevTools MCP](https://github.com/ChromeDevTools/chrome-devtools-mcp) | Whatever your coding agent chooses to test | A tight loop while the agent builds | The same agent writes the code and the test; you own the suite |
| Other diff reviewers | [GitHub Copilot code review](https://docs.github.com/en/copilot/concepts/code-review/code-review), [Cursor Bugbot](https://cursor.com/docs/bugbot), [Qodo Merge](https://www.qodo.ai/), [Graphite](https://graphite.com/) | The diff and surrounding code | Fewer comments, or a better fit with your editor or PR workflow | Same input as CodeRabbit: reads code, never opens the app |

Within those categories, Copilot code review is the easy default if you already pay for Copilot, and Graphite fits teams working in stacked PRs. QA Wolf suits teams that want deterministic tests written as code with a managed team owning the suite. Momentic suits engineers who want test files versioned next to the code and have time to maintain them.

We compare the reviewers one by one on our [CodeRabbit alternatives](https://qa.tech/compare/coderabbit-alternatives) and [Greptile alternatives](https://qa.tech/compare/greptile-alternatives) pages, and the testing side in [QA tools for coding agents](https://qa.tech/blog/qa-tools-for-coding-agents).

## Sandbox tests versus testing the deployed preview

TREX builds its sandbox from a setup script that installs dependencies, runs migrations and seeds data. Your [environment variables are available only during that build](https://www.greptile.com/docs/trex/environments), and outbound network access can be restricted.

That works for a lot of application logic. It is weaker for flows that depend on things outside the repo: your real auth provider, your payment provider's test mode, feature flags served from your backend, the email your onboarding flow sends.

[Daniel Mauno Pettersson](https://www.linkedin.com/in/danielmaunopettersson/), our co-founder and CEO, uses one of our customers as the example. They run a lottery in the US, where what a player may do depends on the state they are in, so the test case has to arrive from that state, through a proxy, and check the rules for it. The same test cases read the SMS and the email a flow sends. None of that exists inside a sandbox built from the repository.

Independence is the second difference. With TREX, the product that reviews your diff also chooses and runs the flows, unless you pin them yourself. An independent verifier starts from the ticket and the user journeys.

## How to run a reviewer and a verifier on the same PR

1. **Keep your reviewer on the diff.** It catches committed API keys, risky patterns and style drift cheaply.
2. **Get a preview environment on every PR.** If you can't yet, review after merge against staging and post the result on the merged PR; [our PR testing docs](https://docs.qa.tech/pr-testing/overview) cover both routes.
3. **Pin a small critical-path regression set.** Sign-up, checkout and payment run on every PR and block the merge. Use [exploratory testing](https://qa.tech/use-cases/exploratory-testing) and tests scoped to the diff for the rest, instead of rebuilding an old suite one to one.
4. **Pin compliance-critical flows to explicit steps,** so journeys that must never drift fail loudly with full traces.
5. **Write acceptance criteria into the ticket or PR description.** The verifier [reads that context first](https://docs.qa.tech/best-practices/pr-testing).
6. **Require the verifier's check in [branch protection](https://docs.qa.tech/pr-testing/github),** and keep the merge decision with a person who now has evidence in front of them.

QA agents take over the repetitive verification. People keep the judgment, the risk calls and the usability questions. For what belongs on the gate, see our [PR checklist](https://qa.tech/blog/pull-request-checklist) and [risk-based testing for pull requests](https://qa.tech/blog/risk-based-testing-pull-requests).

## When a reviewer alone still makes sense

A reviewer plus solid unit and integration tests is enough when there is no user interface, as with libraries, SDKs and command-line tools, or when PR volume is low enough that a person still clicks through every change. Once agent PRs outnumber the people who can click through them, the manual check is the first thing a team skips.

## Where QA.tech fits

QA.tech, an AI testing platform, runs [PR testing](https://qa.tech/product/pr-testing) against each pull request's preview deployment. It won't review your code: the posted review has no code-quality opinions, so keep your reviewer for that. Web tests run in a Chromium-based browser, and the agent does not clean up the test data it creates. What it removes is the hand-run pass through the preview that nobody has time for at 1,500 PRs a month.

The QA agents open the deployed app in a browser and work toward a user goal from what is on the screen, the way a person does, so test cases [adapt when the UI changes](https://qa.tech/use-cases/ui-change-resilient-testing). That is different from "self-healing", which usually means a broken locator got re-guessed ([why that idea misleads](https://qa.tech/blog/self-healing-tests-misconceptions)).

On each PR, the agent reads the description, the linked Jira or Linear ticket and the diff. It selects the existing test cases that cover the change and writes new ones only where coverage is missing, which for most bug fixes and refactors means none. Depth follows risk: how many user flows the change can touch, how central those flows are, and how much of them existing tests already cover. The verdict is pass, fail or "unable to verify", which means the tests never reached your change, so you don't get a false green. Failures come with the agent's step-by-step reasoning, screenshots, video, network activity and console output.

![A QA.tech review posted on a pull request: a medium-risk change across three CRM surfaces, eight tests run, one failure showing the deal page missing its health badge](https://qa.tech/compare-assets/qa-tech-pr-review-example-acme-signal-pr-46.webp)

*The review on the demo CRM PR from earlier. Your code reviewer keeps its own thread; the two don't argue.*

Test cases cover web, [native mobile](https://qa.tech/product/mobile-testing), [API](https://qa.tech/product/api-testing), [email and SMS](https://qa.tech/use-cases/notifications-testing) and [voice](https://qa.tech/product/voice-testing). Before a PR exists, the [MCP server](https://qa.tech/product/mcp) lets Cursor, Claude Code or Codex start runs, read results and create test cases, and the CLI tunnel lets the QA agents test your localhost. Reviews post natively on GitHub, GitLab and Azure DevOps, with a [change review API](https://docs.qa.tech/pr-testing/api) for other CI systems, and findings land in Jira, Linear or Slack.

PR testing is included in the [free trial](https://qa.tech/pricing), so you can connect a repo and see a review on your own pull request before you talk to anyone. For a longer account, there is a case study on [replacing 320 hours of manual testing with QA agents](https://qa.tech/case-studies/how-upsales-replaced-320h-of-manual-testing-with-agents).

Related: [the PR testing stack for 2027](https://qa.tech/blog/pr-testing-stack-2027).

## FAQ

**Does an AI code reviewer test my application?**
No. A code reviewer reads the diff and the surrounding code, and some run linters or analysis tools in a sandbox. None of the mainstream reviewers open your deployed application during a review.

**Is a sandbox test the same as testing the preview deployment?**
No. A sandbox is built from your repository, so it covers application logic well and misses anything that lives outside the repo: your auth provider, payment test mode, feature flags served from your backend, and the emails or SMS your flows send.

**Can I use a code reviewer and PR testing together?**
Yes, and that is the setup we recommend. The reviewer covers the diff and the verifier covers the deployed preview, each posting its own result on the same PR.

**Can a coding agent test its own pull request?**
It can for quick feedback while it builds, but the merge verdict should come from a system that did not write the change. An agent that misread the ticket writes tests that agree with the misreading.

**Do I need preview environments to test pull requests?**
They are the best target. Teams without them can review after merge against staging and post the result on the merged PR.
