We use analytics to count visits and form use. It is on unless you reject it. We show no ads on this site.

Test with AI

QA for AI-generated code: review, tests and a regression safety net

Your developers ship faster with AI coding assistants, and review and tests have not sped up to match. You get an audit of one module that shows what its current tests would miss, then the missing tests and a regression check in CI that stops a breaking change at the pull request.

4.9 out of 5 on Clutch, from 7 client reviews

ai-generated-code-testing / audit-findings.md

AI-assisted pull requests, billing module

Audit findings
Invoice rounding in a new helperBehaviour matches the existing billing rules Defect
Generated unit tests for the helperTests fail if the logic is broken Weak
New endpoint for refundsAuthorisation checked for every role Engineer
Refactor of the date moduleExisting behaviour unchanged on the regression set Stable

Zapple.Tech in figures

  • CodeceptJSFounded by the founders of CodeceptJS and Codeception, open-source testing frameworks
  • 2015On the market since 2015

Page updated . Written by the Zapple.Tech QA team.

What you can order

What can you order here? Four ways in, depending on where you are today.

Review of AI-written code

Engineers read what the assistant produced against what was asked for, and report what does not match.

  • Logic checked against the requirement, not only against the compiler
  • Invented or misused library calls, and dependencies nobody chose
  • Error handling, input validation and permission checks read by hand

Tests that can fail

Generated tests often confirm what the code does instead of what it should do. Existing tests are checked by breaking the code on purpose; missing ones are written from the requirement.

  • Deliberate faults put into the code to see which tests notice
  • Unit, API and integration tests for the risky paths first
  • Tests written from the requirement, not read off the code under test

Automated regression testing in CI

A safety net that runs on every change, so a fast assistant cannot quietly break what worked yesterday.

  • Characterisation tests that pin down current behaviour before a refactor
  • Checks on every pull request that your team can read and extend
  • A failing check blocks the merge until someone decides what is right
Regression testing

Review rules for AI-assisted pull requests

Short, written rules for what the author and the reviewer do when the code came from an assistant.

  • What a pull request says about how the code was produced
  • What the author runs and reads before asking for review
  • What the reviewer verifies that a green build does not show

How it works

Checks on a pull request with AI-written code

Checks on a pull request with AI-written codeA pull request with code from an AI coding assistant goes through four checks. Review, the gate: an engineer checks the requirement match, existing behaviour, dependencies and boundaries. Tests that can fail: tests proven useful by deliberate faults, a technique known as mutation testing. Regression check in CI: a regression set shows whether the change altered something that worked. Merge: only after the checks pass. A failed check stops the change at the pull request and sends it back.AI assistantPull requestCode from an AIcoding assistantEngineerReviewRequirementmatch,dependencies,boundariesCITests thatcan failProven bydeliberate faults(mutationtesting)CIRegressioncheckShows whethersomething thatworked haschangedYour teamMergeOnly after thechecks passA failed check stops a breaking change at the pull requestChecks on a pull request with AI-written codeA pull request with code from an AI coding assistant goes through four checks. Review, the gate: an engineer checks the requirement match, existing behaviour, dependencies and boundaries. Tests that can fail: tests proven useful by deliberate faults, a technique known as mutation testing. Regression check in CI: a regression set shows whether the change altered something that worked. Merge: only after the checks pass. A failed check stops the change at the pull request and sends it back.AI assistantPull requestCode from an AI coding assistantEngineerReviewRequirement match, dependencies, boundariesCITests that can failProven by deliberate faults (mutationtesting)CIRegression checkShows whether something that worked haschangedYour teamMergeOnly after the checks passA failed check stops a breaking change at thepull request
How a pull request with AI-written code passes review, tests that can fail and a regression check in CI, which stops a breaking change before it is merged.

What changes when an assistant writes the code

Review and testing were designed for code that a person wrote slowly and understood. Code from an assistant differs in ways that matter to QA.

  • It reads well and can still be wrong. Names are tidy and comments are confident. A subtle logic error or a misread requirement does not show up on a quick read.
  • Nobody holds the whole picture. The developer prompted it and skimmed it. When it breaks, no one remembers why it was written that way.
  • Its tests share its blind spots. If the same assistant wrote the code and the tests, the tests often confirm what the code does instead of what it should do.
  • Volume goes up. More changes per week means more to review, and review time does not grow with it.

The answer is not slower development. It is checks that run on every change and a second pair of eyes on the code that carries risk.

How the audit tests the tests

A test suite can be green and still protect nothing. The audit finds out by changing the code on purpose, a technique known as mutation testing, and watching which tests fail.

Deliberate fault A useful test A weak test
Rounding changed from half-up to down Fails on the invoice total Passes, because it only checks that a number is returned
Permission check removed from an endpoint Fails for the user without the role Passes, because it only calls the endpoint as an admin
Off-by-one in a date range Fails on the last day of the month Passes, because its sample dates are mid-month

Every fault that no test catches becomes a line in the map of untested behaviour.

What the review covers

Area Example checks
Requirement match The code does what was asked, including the cases the prompt did not mention
Existing behaviour A change did not alter something that worked, shown on a regression set
Dependencies Libraries and functions exist, are used as documented and were chosen on purpose
Boundaries Input validation, error handling, permissions and data handling
Consistency The new code follows the structure and conventions of the code base

For end-to-end coverage of the product built from this code, see end-to-end testing with AI agents; for a review of your whole test process, see QA audit and assessment.

Honest limits

What QA does not solve for AI-generated code. Tests and review lower the chance of shipping a defect. They do not turn unreviewed code into reviewed code, and they do not replace your developers' ownership of what they merge.

  • 01

    It cannot prove the code is correct. Tests show that specific behaviours hold; behaviour nobody tested stays unknown.

  • 02

    It cannot restore a missing requirement. If nobody can say what the code should do, the tests can only record what it does today.

  • 03

    Code review is not a security assessment. Obvious security flaws are reported; there is no penetration test and no certification.

  • 04

    It does not slow down or police your developers' use of AI assistants. It checks the output.

  • 05

    Poor design and tangled code are reported, but a rewrite is your decision and your developers' work.

How the work runs

How does the work start? With the AI-written code audit: about one week. You decide after each step whether to continue.

  1. About one week

    AI-written code audit

    One service or module written largely with AI assistants. We read the code, run it, and measure what the existing tests would catch by putting deliberate faults into it.

    • Defects and risks found, each with the file and the line
    • Map of the behaviour that has no test that would fail
    • The tests and CI checks to add first
  2. Two to six weeks

    Pilot

    The highest-risk paths of that module get tests and a regression check in your CI, and your team starts using the review rules on real pull requests.

    • Tests and CI checks merged in your repository
    • Review rules for AI-assisted pull requests, ready for your contributing guide
    • Handover session with your developers
  3. Monthly

    Ongoing

    Zapple.Tech engineers review the riskiest AI-assisted changes and extend the tests as the code base grows, working in your pull requests.

    • Review of flagged changes before release
    • Tests kept in step with the code
    • Monthly report on what the checks stopped

Each step has a defined scope, duration and deliverables. You decide after each one whether to continue.

Tell us which module or service your team writes mostly with AI assistants, and in which language. We reply within one business day with scope, timeline and a quote.

An engagement can start within two weeks of your go-ahead.

AI-generated code testing: your questions answered

Is AI-generated code worse than code written by people?

We do not claim that. The risk is different: it arrives faster and reads well, so it is easy to merge without enough checking. The audit measures your code, not a general rule.

Our developers already review pull requests. What does this add?

A reviewer reads a diff. The audit also runs the code, breaks it on purpose to see whether the tests notice, and checks the behaviour against the requirement rather than against the code beside it. It is done by someone who did not prompt the assistant.

Can you tell which code was written by AI?

Not reliably, and it matters less than it seems. The module to audit is chosen with you, from your commit history, your team's knowledge and where the business risk sits.

What access do you need?

Read access to the code under audit and to your CI configuration, and a developer who can answer questions about the requirements. For the pilot, the work goes through pull requests in your repository.

Do you put our code into an AI tool?

Only tools you approve. If your rules say code must not leave your environment, the audit is done without any external AI service.

Who does the work?

Zapple.Tech test automation engineers, who write the unit, API and integration tests themselves. The company's founders are the founders of CodeceptJS and Codeception, two open-source testing frameworks.

How long does it take?

The audit takes about a week for one module. The pilot runs two to six weeks, depending on how many risky paths the audit found and how testable the code is today.

How much does it cost?

Prices are not published. The quote depends on the size of the module, the language and how much test infrastructure already exists. Describe the code base and your team and you get a scoped quote within one business day.

Request an audit quote

Tell us what you ship and what worries you.

What happens after you send this

  1. You send the form: your situation and what you need tested, then your name and work email.
  2. Within one business day, we reply with a suggested first step, its scope, timeline and a quote.
  • Fixed scope
  • You decide after each step
  • The tests live in your repository
  • An NDA signed before access

“They helped us to close the positions and consult our team how to proceed further. High-quality quick feedbacks with the deep checking of the required tasks, professional approach, great understanding of the company's technologies and product, detailed reports.”

Kristina Lavrentieva, Manager at keepgo.com, Israel
  • Rated 4.9 out of 5 on Clutch, from 7 client reviews
  • 42 completed test automation and infrastructure projects
  • Founded by the founders of CodeceptJS and Codeception, open-source testing frameworks

Request a QA audit quote

    What is closest to your situation?
    Optional. The product, the platforms, how often you release, what broke last.

    You decide after our reply whether to go ahead.

    Prefer to talk first? Book a call

    One-week QA audit · written report

    Request an audit quote