Run End-to-End Tests from Your Terminal with Kane CLI

Author and Run Tests Right from the Terminal in Natural Language, with an Evidence-Backed Pass or Fail from a Real Browser.

npm install -g @testmuai/kane-cli

Independent Testing in Software Testing: Why AI-Written Code Needs a Checker It Can't Edit

Independent testing means the author doesn't grade the work. See ISTQB's 4 levels, where Claude Code's verification loop stops, and how to add a check.

Published

Summarise with AI

Independent testing in software testing means the work is checked by someone other than the author, against criteria that the author cannot alter. ISTQB defines four levels: the author, a peer on the same team, testers from outside the team and testers from outside the organization. If an AI agent is writing your code, then you need to ask what level of independent testing each of those checks is at.

TL;DR

Independent testing in software testing is testing by someone other than the author, against criteria the author can't change. ISTQB sets four levels of independence in testing, from the author up to an outside organization. Tests an AI agent writes and runs on its own code sit at the lowest level, so add checks the agent can't edit.

Key Facts

  • Claude-written code: Anthropic's Claude Code team say Claude writes and reviews around 90% of the code (Addy Osmani, 16 Nov 2026).
  • Separate grader: In Anthropic's internal testing of structured file generation, a separate grader using a rubric was able to boost task success by up to 10 points over the standard prompting loop.
  • Claude Code Review: Anthropic's docs state that Claude Code Review looks at the diff and the surrounding code without having to build or run anything.
  • TestMu AI experiment: In a TestMu AI experiment, all 57 of the Claude Code tests for the shop app passed. On phones narrower than about 520px, the cart Remove button was still off screen.
  • Kane CLI: An independent test harness that runs outside the coding agent's repo and session. Runs the app: Yes. Model in the loop on strict CI replays: No. Free to install: Yes, and runs use KaneAI credits.

What Is Independent Testing in Software Testing?

Independent testing is testing carried out by someone (a person, a team or a system) who didn't produce the work under test. The author is testing what they think the code does. The independent tester is testing what the requirement says.

Defects are the difference between the two.

The ISTQB Certified Tester Foundation Level syllabus (section 1.5.3) talks of four levels of independence. ISTQB doesn't actually number them; the numbers below are just for reference.

LevelWho testsIndependenceAI coding agent equivalent
1The authorNoneThe agent runs tests it wrote in the same session
2A peer on the same teamSomeA second agent or subagent reviews the change in the same repo
3Testers outside the team, inside the organizationHighCode owners or QA write checks from the spec, store them where the agent can't edit them, and run them in CI
4Testers outside the organizationVery highAn outside team or service runs the checks and holds the evidence

Independent testing is quite different from outsourcing. An outsourced team that also builds the feature isn't independent of it. Independent testing doesn't in any way replace developer testing.

The syllabus makes it clear that independence is no substitute for familiarity as authors will find a lot of the defects in their own code very quickly. Independent Verification and Validation (IV&V) is the formal term for it, and IEEE 1012 defines technical, managerial and financial independence in that standard. Our guide to Independent Verification and Validation covers IV&V for AI agents.

What Are the Benefits and Drawbacks of Independent Testing?

ISTQB's benefits are that the independent testers are going to pick up different failures (their biases are different to the author's) and they can challenge the assumptions that have been made during the specification and implementation. The drawbacks are the isolation from the developers, the developers no longer being owners of quality and the test team becoming a bottleneck.

Automated checks in CI remove most of the isolation, but the bottleneck risk remains, and the Claude Code team point out that slow tests reduce the number of checks that can run per batch.

Why Does Independent Testing Matter More When an AI Agent Writes the Code?

An AI coding agent writes the code and the tests from a single understanding of the task. If that understanding is flawed or incomplete, then the code and the tests will have the same gap and the suite will pass.

TestMu AI measured this in Nov 2026 (see what Claude Code tests catch). Claude Code 2.1.327 on Claude Opus 5.5 built a 12-requirement shop app and wrote 57 tests (36 unit/API and 21 Playwright), all of which passed. All of the tests ran in a desktop-sized window, so none of them saw the cart's Remove button move off-screen below about 520px. One Pixel 7 project caused one test to turn red. The agent also filled in 5 of the spec gaps with its own rules (e.g. promo codes were case insensitive) and no test in the suite questioned those. The 12 independent checks in that experiment were Kane CLI end-to-end checks, written from the spec and hashed prior to the build.

Mini Shop cart at Pixel 7 width, where the table runs past its card and the Remove buttons are cut off at the right edge

The Claude Code team say verification loops allow a dev to go from having one or two Claude sessions running at any one time to having dozens or hundreds of them running in parallel. At that scale the checks do the checking. Level 1 checks take a hundred agents and turn them into a hundred pieces of self-assessed work.

What Does the Claude Code Team Get Right About Verification?

Addy Osmani's post 'How the Claude Code team thinks about verification' (16th Nov 2026) is a very thorough public account of how the AI-first team thinks about verification of agent work. A significant portion of it is test independence reimagined for the agent context.

What the Claude Code team doesIndependence principle
A separate grader checks work against a rubric (up to 10 points better on structured file generation, with the biggest gains on the hardest problems)Level 2: the author no longer grades itself
If you pick one test type, pick end-to-end, because a step trace and screenshot explain what "Timeout after 30s" doesn'tChecks that observe behavior
Property tests (fast-check, Hypothesis, proptest) generate thousands of inputs; differential tests use the old system as the oracleInputs and an oracle the author didn't choose
Code owners write the checks, and a check says why it pulled in a reviewerLevel 3: the checker isn't the author
Code Review reads REVIEW.md from the base branch; in the post's words, "changes can't modify their own checks"The rule that defines independence
Each commit is stamped with how it was verified, including "none", behind an off, observe or enforce gateAn audit trail and a safe rollout
Reviewers are graded on reverts, maintainer rejections and a size-matched clean set; a missed pattern becomes a rule only after 2+ PRs, three agents failing to disprove it, and human approvalSomeone checks the checker
Flaky tests are never skipped, slept or retried until green; with no root cause, the test is deleted with a written reasonA green result keeps its meaning

The post finishes by treating verification as a system: keep it out of the changes it's assessing, rate it on the bugs that actually mattered and trim it. It also names the new job of the human who is now responsible for defining what "done" means and for reviewing the evidence.

Where Does an In-House Verification Loop Stop Being Independent?

A well-built in-house loop like this one gets to level 2 and level 3 for the files it protects. Six pieces are still in the agent's reach or in the vendor's stack, and each of those can be checked against Anthropic's documentation.

  • The grader is from the same model family. Claude Code Review selects its own Claude models (no admin choice) and the post makes no comment as to whether its grader was a different model. Two passes from the same model family can be susceptible to the same blind spot, so a check that doesn't need a model to make its decision is an added layer of independence.
  • Review reads the code without running it. The Anthropic Code Review docs state that a review is performed on the diff and the surrounding code without the need to build or run it. A review with no findings does not equate to the code being bug-free. The check run will conclude as neutral, and GitHub will treat that as a pass. To gate the code you'd either use a Claude Approvals policy or a CI script which reads the severity counts. In either case the gate is on the model's reading of the diff. Our post on adding a test gate in addition to the Claude Code Review shows what the required check is.
  • The verify recipe is in the repo that the agent edits. The bundled /verify skill writes its recipe out to .claude/skills/verify/SKILL.md and Claude will only edit that file when it's caused a run to go wrong (skills docs). The REVIEW.md base branch rule doesn't cover it so we need to add it to CODEOWNERS and branch protection.
  • Verification covers the environments the agent can drive. The post's loop drives web apps via the Claude Chrome extension and mobile via the iOS and Android MCP servers. It doesn't cover a browser and device matrix at all. The users in the post are on Safari, 412px Android phones and older iPhones. In TestMu AI's experiment, the layout bug only appeared below 520px.
  • The evidence stays in the agent's session. Transcripts, screenshots and commit stamps are all in the session and the repo. Auditors want to see evidence that the agent couldn't have edited it. Code Review isn't available with Zero Data Retention or the HIPAA config anyway and isn't covered by Anthropic's BAA, so those teams will need another route.
  • Regression at scale is a different ball game. The 39-item checklist with 3-10 items per diff is appropriate for a more focused codebase. When you get into hundreds of flows across browsers and devices, you need parallel runs, you need saved evidence, and you need flake history. HyperExecute handles all of that for you with its parallel test orchestration (parallel runs and flaky test detection).

The post is about one team's loop within one vendor's toolchain, so levels 3 and 4 have to come from outside of that.

In-House Loop, Independent Harness, and External QA: How Do They Compare?

The three options are at different levels of independence. Prices and limits were checked on 5th December 2026.

CriterionIn-house loop (Claude Code)Independent harness (Kane CLI)External QA
Who writes the checksThe agent (/verify recipe); code owners (REVIEW.md)Code owners or QA, from the spec, committed as _test.md filesOutside testers
Runs the app?/verify does; Code Review doesn'tYes: real Chrome, Android emulator, iOS simulator, real devicesYes
Who decides pass or failClaude models, inside the agent's sessionA separate runtime in CI: committed _test.md checks replay with no model in the loop (with --no-adaptive-heal), and a separate verification step decides the verdictPeople
EvidenceSession transcript, PR comments, check runSealed evidence pack, CI artifact kept 30 days, Test ManagerWritten reports
Merge gateNeutral check run, which GitHub counts as passing. To gate, use a Claude Approvals policy or a CI script that reads the severity counts; either way the gate rests on a model's reading of the diffAny non-zero exit fails the checkManual sign-off
Cost modelCode Review is billed on tokens, with no flat price; Anthropic's launch post cited a $15-25 average per review (March 2026)CLI is free; runs use KaneAI credits (new accounts get 10,000 credits valid for 7 days)Contract
ISTQB level1-2 (3 for protected REVIEW.md rules)34

How Do You Add Independent Testing to an AI Coding Workflow?

Independent testing means moving the checks, the runner and the evidence out of the agent's hands. The four steps below cover that aspect; the full 8-step workflow (including phone-width runs and seeding a bug to prove the gate turns red) is in our guide to testing and reviewing AI-generated code.

  • Write the acceptance checks from the spec prior to the agent building. Use the exact values (e.g. "free shipping at $50.00" rather than "over fifty"). In TestMu AI's experiment the 12 checks were written and hashed prior to Claude Code even starting.
  • Protect the path that the checks live in. Put them under a path such as tests/acceptance/, list them in CODEOWNERS and require an owner's approval via branch protection. The Claude Code team do the same with REVIEW.md.
  • Run them in CI with a runner that the agent doesn't have configured and gate on the exit codes. Kane CLI returns 0 if the test passes, 1 if the run finishes without passing or the upload fails, 2 if the run never starts (i.e. no credits used) and 3 on timeout or cancel. The official GitHub Action fails the check on any non-zero exit code:
    # .github/workflows/kane.yml
    name: Kane browser check
    on: [pull_request]
    
    permissions:
      contents: read
      pull-requests: write   # lets the action post the verdict comment
    
    jobs:
      verify-ui:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - uses: LambdaTest/kane-cli/integrations/github-action/kane-cli-browser-run@main
            with:
              objective: "Go to https://staging.myapp.com/pricing and verify the Pro plan card shows a monthly price"
              username: ${{ secrets.LT_USERNAME }}
              access-key: ${{ secrets.LT_ACCESS_KEY }}
    To run the committed suite, replace objective with test-files: "tests/**/*_test.md".
  • Keep the evidence outside the session. The action uploads the sealed evidence pack as an artifact (kept for 30 days), links it to the hosted evidence viewer and posts the verdict as a PR comment. Also uploads to Test Manager by default.
Kane CLI evidence viewer for a failed checkout run, listing each test step, the failed assertion, the page screenshot and the network log

Where Does Kane CLI Fit as an Independent Test Harness?

Kane CLI is TestMu AI's end-to-end testing agent for developers, SDETs and their coding agents. You describe a user flow in plain English from the terminal; Kane CLI runs it in real Chrome or on a device and gives you a pass/fail with evidence.

To connect it to Claude Code, just point the agent at Kane CLI's AGENTS.md or have that file in your repo. That file also contains npx @testmuai/kane-cli-skill as the full skill for Claude Code.

  • Output an agent that can act on. kane-cli run "<objective>" --agent outputs structured NDJSON along with the exit code so Claude Code can read the verdict rather than having to work out what it is from the logs.
  • Replays with no model in the loop. kane-cli testmd run ./tests/e2e/checkout_test.md will write out each step on the first run and save the recordings. Subsequent runs will simply replay the recordings with no agent present and no LLM cost. Adaptive healing is on by default, so to get a strict gate in CI (where a failed replay will cause the test to fail rather than be re-written), just pass --no-adaptive-heal to testmd run or testrun run.
  • Evidence a reviewer can open. Each run seals its steps with screenshots, console and network logs, and the verdict in a pack under .testmuai/evidence/.
Kane CLI in agent mode printing NDJSON step events and a failed run_end line, with the shell reporting exit code 1

Why TestMu AI for Independent Verification

What you needWhat TestMu AI providesSource
A verdict the coding agent can't shapeA separate runtime outside the agent's repo and session. With --no-adaptive-heal, committed checks replay with no model in the loop, and a separate verification step decides the verdictKane CLI page; testmd docs; CLI reference
Coverage beyond the agent's own browser50,000+ real iOS and Android devices (iOS 14-27, Android 9-17) on the real device cloudReal Device Cloud page
Regression at scalekane-cli testrun run --remote dispatches a suite to the HyperExecute grid (default backend hyper; needs the remote-execution plugin and a plan that includes HyperExecute), each run with an evidence pack and an exit codeCLI reference; AGENTS.md
Evidence the team controlsResults land in Test Manager, which syncs both ways with Jira and Azure DevOpsTest Manager page

TestMu AI is "A Leader in the 2026 Gartner® Magic Quadrant™ for Agentic Software Quality Assurance Platforms".

TestMu AI's experiment also illustrates the limitations of an independent check. Claude Code's own suite found all 8 of the seeded bugs. Kane CLI run against 4 of them found the free shipping threshold and the cart cleared on rejection, and missed the FLAT5 threshold and the header cart count. That's ISTQB's rationale for testing at more than one level of independence.

Note

Note: Try it on one flow. npm install -g @testmuai/kane-cli, write one acceptance check from your spec and run it on your next Claude Code PR. Get started with Kane CLI.

When Don't You Need a Separate Testing Tool?

A separate test harness isn't always worth the setup. Skip it, or wait, in these cases:

  • Prototypes, throwaway scripts and small internal tools. If very few people are actually using the output, then a quick check and a glance are sufficient.
  • Pure logic and libraries. Unit and property tests are the correct test for parsers, pricing maths and encoders. A browser harness adds nothing.
  • A human-owned E2E suite is already in CI. A Playwright or Cypress suite on a protected path with evidence retained is already at level 3. Kane CLI would then largely just add in plain English authoring and real device coverage.

Conclusion

Pick one user flow from your next Claude Code pull request and write its acceptance check from the spec before the agent builds it. Commit it under a protected path, run it in CI and gate the merge on the exit code, then add a phone-width run and a seeded bug to confirm the gate turns red.

Testing from the terminal? Kane CLI by TestMu AI lets SDETs and developers plan, write, run and debug tests from the command line.

To run your first test, start free, or
for a full walkthrough of the product.

Gartner, Magic Quadrant for Agentic Software Quality Assurance Platforms, Ross Power, Sushant Singhal, C.A. Swan, 12 October 2026. Gartner does not endorse any company, vendor, product or service depicted in its publications, and does not advise technology users to select only those vendors with the highest ratings or other designation. Gartner publications consist of the opinions of Gartner's research organization and should not be construed as statements of fact. Gartner disclaims all warranties, expressed or implied, with respect to this publication, including any warranties of merchantability or fitness for a particular purpose. GARTNER and MAGIC QUADRANT are trademarks of Gartner, Inc. and/or its affiliates.

Was this helpful?

Authors

Asad Khan

Asad Khan

Author · 12 posts

Asad Khan is the Co-Founder and CEO of TestMu AI, with over 15 years of experience in software testing, product strategy, and leadership. Under his leadership, TestMu AI has grown into an AI-native software testing platform trusted by 2.5M+ users across 132 countries, including startups, enterprises, and Fortune 500 companies. He is a member of the Forbes Technology Council and is followed by 39,000+ professionals on LinkedIn from the software testing and quality assurance community. Before TestMu AI, Asad co-founded 360logica, a software testing company that he grew into a multi-million-dollar business before its acquisition by Saksoft. Earlier, he began his career at GlobalLogic as a Lead Engineer serving top Wall Street banks. He holds a Bachelor of Technology from JSS Academy of Technical Education, Noida.

Maneesh Sharma

Maneesh Sharma

Reviewer

Maneesh Sharma is Chief Operating Officer at TestMu AI, where he leads the company's revenue functions across go-to-market, sales, RevOps, customer success, and the partner ecosystem, driving its global expansion. He brings over 28 years of experience across product, go-to-market, and business operations. Before TestMu AI he was Managing Director and General Manager for GitHub across India and APAC, Head of Partner Sales and Ecosystem at Adobe, Chief Revenue Officer at WizIQ, and Head of Products and Solutions at SAP India. Maneesh holds an MBA from IIM Bangalore and a B.E. in Electronics and Communications from NIT Surat.

Independent Testing FAQs

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests