# The PR Testing Stack for 2027: Three Checkpoints Between a Coding Agent and Production

> Coding agents open more PRs than anyone can review. The stack that holds up checks each change at three points: in the coding tool, on the PR preview, and on main after merge. Tools, costs and what each one misses.

Source: https://qa.tech/blog/pr-testing-stack-2027 · Published: 2026-11-23

---
Coding agents open pull requests faster than anyone can review them, and the review queue is now the slow part of shipping. The question is how to confirm each change works without burning out the people who test it. The setup that holds up in 2027 checks every change at three points: inside the coding tool before the PR exists, on the PR's preview deployment before merge, and on main after merge.

This guide covers the tools at each checkpoint, what they cost in practice and what they miss. It is written for engineering and product teams with a high release cadence, where more and more features come from Claude Code, Cursor and Codex.

> **TL;DR:** Let your coding agent check its own work while it builds, and take the merge verdict from something else. On every PR, run an AI code reviewer on the diff and an independent test on the running preview. After merge, keep a small pinned set of critical flows running on main and in production. Everything else gets dynamic testing scoped to what each diff touches.

## Why verification is the bottleneck now

Confirming that a change works is now the slowest step in the delivery pipeline. CircleCI's [2026 State of Software Delivery](https://circleci.com/blog/five-takeaways-2026-software-delivery-report) found average daily workflow runs up 59% year over year while the main-branch success rate fell to 70.8%, the lowest in over five years. Developers describe the same thing from their side: in Stack Overflow's [2026 Developer Survey](https://stackoverflow.co/company/press/archive/stack-overflow-annual-developer-survey-ai-trust-conditional/), nearly half trust AI output only when they can verify it, and 6.6% trust it for important decisions.

None of this started with AI. Scripted regression suites were slow and brittle long before coding agents. Agents multiply the number of changes those suites have to judge.

There is also a question of independence. Coding agents write good code and plenty of unit tests, but those tests share the agent's assumptions. If the agent misread the ticket, its tests misread it too, and both pass.

The cost shows up as a bill that moves with velocity. A team we met in November gates every merge on a Codex review and lets Codex drive a browser to click through the change. It works, and their Codex bill climbs with every increase in throughput. [Daniel Mauno Pettersson](https://www.linkedin.com/in/danielmaunopettersson/), our co-founder and CEO, hears the same budgeting from most teams he talks to: so much per PR for code generation, so much for code review, then verification. Price the stack per merged PR across all three checkpoints, and look for the places where a cheap check early makes a later one cheaper.

## What an agentic dev stack looks like

The stack has three checkpoints. Each answers a different question, so each needs different tools.

| **Checkpoint** | **When it runs** | **Question it answers** | **Example tools** |
| --- | --- | --- | --- |
| Inner loop | While the agent works, before a PR exists | Does the change build and behave locally? | Linters, type checkers, unit tests, Playwright MCP, Chrome DevTools MCP, QA.tech MCP server |
| PR gate | When a PR opens or updates | Is the diff sound, and does the preview work for a user? | CodeRabbit, Greptile, Copilot code review, Cursor Bugbot, Vercel, Netlify, QA.tech, QA Wolf, Momentic |
| After merge | On main, staging and production | Did the release break a critical flow? | Pinned regression suite, scheduled smoke runs |

### Inner loop: checks before the PR exists

Linters, type checkers and the agent's own unit tests run in seconds. Agents should run them on every iteration.

[Vilhelm von Ehrenheim](https://www.linkedin.com/in/vilhelm-von-ehrenheim/), our co-founder and Chief AI Officer, splits the checks a software factory needs into quick invariants and longer-running judges, and the inner loop is for the invariants.

Some tools give the agent a browser to work with while it debugs. [Playwright MCP](https://github.com/microsoft/playwright-mcp), from Microsoft, uses the Model Context Protocol to let an agent drive a real browser, and [Chrome DevTools MCP](https://github.com/ChromeDevTools/chrome-devtools-mcp) lets it read console errors and network requests. Both help the agent see what it broke. Neither keeps a test suite, so nothing they do runs again on the next change.

Our [MCP server](https://qa.tech/product/mcp) connects Claude Code, Cursor or Codex to the QA agents. From inside the coding tool, your agent can start a run of existing test cases, read the results, add a test case described in plain English, and, with the CLI tunnel, have the QA agents test `localhost` before anything is committed.

**Trade-off:** inner loop checks are evidence the agent gathers for itself. They shorten iteration, and they should not be the merge verdict.

### PR gate: review the diff, then test the preview

Review bots catch logic slips, risky patterns and convention drift before a human opens the PR. [CodeRabbit](https://www.coderabbit.ai/), [Copilot code review](https://docs.github.com/en/copilot/concepts/code-review/code-review) and [Cursor Bugbot](https://cursor.com/docs/bugbot) read the diff and never open the app. [Greptile](https://www.greptile.com/) goes one step further with TREX, which runs your branch in a sandbox it builds from your setup script; that sandbox is still not your deployed preview, and your environment variables [are available only while it builds](https://www.greptile.com/docs/trex/environments). We compare the reviewers in our [AI code review roundup](https://qa.tech/blog/top-5-ai-pr-code-reviewers-2025) and on the [CodeRabbit alternatives](https://qa.tech/compare/coderabbit-alternatives) page.

### Preview deployments

Vercel, Netlify, Render, Railway and Fly.io can deploy every PR to its own URL. Connected to GitHub, they register a [GitHub Deployments record](https://docs.qa.tech/configuration/github-deployments) that testing tools pick up automatically.

Previews come with four costs. Each preview needs seed data. Test users must be able to sign in. Protected previews need a [bypass](https://docs.qa.tech/configuration/vercel-preview-protection) so the testing tool can reach them. And extra environments cost hosting money.

At LeadDev Berlin this month, most of the teams we spoke to already had a preview per PR. Nearly all of them used it for one thing: a person clicks around in it. The deployment is the expensive part, and they had already paid for it. [Getting more out of preview environments](https://qa.tech/blog/preview-environments) covers the setup; if you have no previews, you can test after merge against staging instead.

### Testing the preview

| **Tool** | **Runs against** | **What you maintain** | **Best for** | **Trade-off** |
| --- | --- | --- | --- | --- |
| QA.tech | PR previews, staging, production | Agent context and a small pinned suite | An independent verdict on every PR at high volume | Chromium-based web; native mobile on simulators and emulators |
| [QA Wolf](https://www.qawolf.com/) | A preview deploy per PR | Little, since their team owns the Playwright suite | Managed, exportable test code | Scripts still break when the UI moves; three attempts per run keep flakes out of the gate without removing them |
| [Momentic](https://momentic.ai/) | The browser in your CI job | YAML tests and CI wiring in your repo | Selection logic inside your own pipeline | Diff-based selection depends on a TypeScript or JavaScript codebase; the agent that wrote the change often writes its test |
| [Playwright](https://playwright.dev/) | Any URL you point it at | Everything | Full control, open source, Firefox and WebKit | Flake triage and upkeep are yours |

Here is how [PR testing](https://qa.tech/product/pr-testing) works in QA.tech, an AI testing platform, when a PR opens:

1. The QA agent reads the PR description, the linked Jira or Linear ticket and the diff.
2. It works out which user flows the change can affect.
3. It selects existing test cases that cover those flows and writes new ones only where coverage is missing.
4. It sets test depth by risk, so a small change to payments gets more scrutiny than a large change to an isolated settings page ([how risk is weighed](https://docs.qa.tech/pr-testing/overview)).

The test cases run in a real browser against the preview. The QA agents work toward a user goal from what is on the screen, with no fixed selectors to replay, so tests [adapt when the UI changes](https://qa.tech/use-cases/ui-change-resilient-testing). We call this [dynamic testing](https://qa.tech/blog/what-is-dynamic-testing): the tests are chosen from each change and run against the live app, and the verdict says whether the product still works for a user once the change is in. A code reviewer says whether the diff looks right, and you need both answers.

The question we hear most is how the agent knows what to test. It starts from the PR description and the linked ticket, then the changed files and routes, and it carries the [knowledge graph](https://docs.qa.tech/core-concepts/knowledge-graph) of your application from earlier runs, so a change to the billing page maps to the flows that reach the billing page. An empty PR description forces it to infer intent from the diff alone, which is why [writing acceptance criteria into the ticket](https://docs.qa.tech/best-practices/pr-testing) is the cheapest improvement most teams can make.

### After merge

After merge, run a small pinned regression set on main and on a schedule against production. Cover only the flows that must never break, such as sign-up, login and payments. For compliance-critical journeys, pin them to explicit steps that fail loudly with full traces, inside the same platform.

You don't need to rebuild an old suite one to one. On GitHub and Azure DevOps, a post-merge agent can promote test cases a PR review created into the regression suite. Scheduled [exploratory testing](https://qa.tech/use-cases/exploratory-testing) covers the long tail. Findings land in [Slack, Jira or Linear](https://qa.tech/product/integrations).

## What slips through each checkpoint

No one checkpoint covers every row, which is the case for running all three.

| **Failure** | **Inner loop** | **AI code review** | **Preview testing** | **After merge** |
| --- | --- | --- | --- | --- |
| Type or lint error | Caught | Caught | Not needed | Not needed |
| Logic bug visible in the diff | Sometimes | Often | If it reaches the UI | If pinned |
| Code looks right, but the flow breaks in a browser | Rarely | Rarely | Caught | If pinned |
| Agent misread the ticket | Missed | Sometimes, with the ticket linked | Caught when the ticket is linked | Missed |
| Preview and production configs differ | Missed | Missed | Partly | Caught by smoke runs |
| Backend side effect invisible in UI or API | Unit tests may catch it | Sometimes | Missed | Missed |

## When the inner loop is enough

A small product team we worked with this autumn stopped using the PR gate. Their developers tested each change locally with Claude, pushed to a test environment, and shipped. Bugs reached production, and they accepted that as the price of speed. Their plan was to come back once they set up a software factory and needed something more automatic, because at that point nobody is left to click through.

That is the shape of the choice: a team with a person still clicking through each change can skip the PR gate for a while, and a pipeline with no person in it cannot.

Plain Playwright on its own is the right call when you have a handful of stable flows, need Firefox or WebKit, or auditors want tests as code in your repo. Someone then owns the tests, the CI wiring and the flake triage, plus the model bill if an agent writes the tests for you. If a vendor offers "self-healing" to keep that suite green, read [why locator re-guessing does not fix brittle tests](https://qa.tech/blog/self-healing-tests-misconceptions) before you buy it.

Whatever you choose, people keep the judgment calls while QA agents take over the repetitive verification. Your team still decides on risk, usability and the merge itself, and the [PR checklist](https://qa.tech/blog/pull-request-checklist) shows how to split those duties.

## Skipping the build

If you would rather not build and maintain the preview-testing flow yourself, QA.tech runs PR testing with QA agents on GitHub, GitLab and Azure DevOps, with a [change review API](https://docs.qa.tech/pr-testing/api) for other CI systems. The [PR testing docs](https://docs.qa.tech/pr-testing/overview) show what a review looks like on a real pull request. PR testing is included in the [free trial](https://qa.tech/pricing), so you can connect a repo and get a review on your next pull request before talking to anyone.

Related: [how to test pull requests beyond the code review](https://qa.tech/blog/test-pull-requests-beyond-code-review).

## FAQ

**What is the best tool for PR testing in 2027?**
No single tool covers everything. Pair an AI code reviewer on the diff with a tool that tests the running preview, and keep a small pinned regression set after merge.

**Is AI code review enough to test a pull request?**
No. A code reviewer reads the diff and never opens the running app, so a change that passes review can still break a user flow.

**Can a coding agent test its own pull request?**
It should while it builds, and the merge verdict should come from something that did not write the change.

**Do I need preview deployments for PR testing?**
They are the best target. Teams without them can test after merge against staging and post the result on the merged PR.

**How many end-to-end tests should run on every PR?**
Run a small pinned set of critical flows as the blocking gate, and scope everything else to what the diff touches.

**Does PR testing replace unit tests?**
No. Unit tests check functions and PR testing checks the running app, so you need both.

**Will QA agents replace testers?**
No. QA agents take over repetitive verification while people keep judgment, risk calls and usability.
