Quality Assurance·

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.

QA.tech team

Three brass inspection apertures connected by a gunmetal spine and glass conduit, representing the inner loop, PR gate and after-merge checkpoints.

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 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, 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, 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.

CheckpointWhen it runsQuestion it answersExample tools
Inner loopWhile the agent works, before a PR existsDoes the change build and behave locally?Linters, type checkers, unit tests, Playwright MCP, Chrome DevTools MCP, QA.tech MCP server
PR gateWhen a PR opens or updatesIs 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 mergeOn main, staging and productionDid 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, 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, from Microsoft, uses the Model Context Protocol to let an agent drive a real browser, and 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 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, Copilot code review and Cursor Bugbot read the diff and never open the app. Greptile 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. We compare the reviewers in our AI code review roundup and on the 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 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 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 covers the setup; if you have no previews, you can test after merge against staging instead.

Testing the preview

ToolRuns againstWhat you maintainBest forTrade-off
QA.techPR previews, staging, productionAgent context and a small pinned suiteAn independent verdict on every PR at high volumeChromium-based web; native mobile on simulators and emulators
QA WolfA preview deploy per PRLittle, since their team owns the Playwright suiteManaged, exportable test codeScripts still break when the UI moves; three attempts per run keep flakes out of the gate without removing them
MomenticThe browser in your CI jobYAML tests and CI wiring in your repoSelection logic inside your own pipelineDiff-based selection depends on a TypeScript or JavaScript codebase; the agent that wrote the change often writes its test
PlaywrightAny URL you point it atEverythingFull control, open source, Firefox and WebKitFlake triage and upkeep are yours

Here is how 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).

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. We call this 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 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 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 covers the long tail. Findings land in Slack, Jira or Linear.

What slips through each checkpoint

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

FailureInner loopAI code reviewPreview testingAfter merge
Type or lint errorCaughtCaughtNot neededNot needed
Logic bug visible in the diffSometimesOftenIf it reaches the UIIf pinned
Code looks right, but the flow breaks in a browserRarelyRarelyCaughtIf pinned
Agent misread the ticketMissedSometimes, with the ticket linkedCaught when the ticket is linkedMissed
Preview and production configs differMissedMissedPartlyCaught by smoke runs
Backend side effect invisible in UI or APIUnit tests may catch itSometimesMissedMissed

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 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 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 for other CI systems. The PR testing docs show what a review looks like on a real pull request. PR testing is included in the free trial, 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.

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.

Your team moves fast. Can your testing keep up?

Our QA agents test your product autonomously, so moving fast never means shipping broken. Start free or get a 30-minute demo.