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

AutomationCI/CD

Test Automation Reporting: What to Report, How to Wire It Into CI, and Which Tools to Use

What a test automation report should include, which metrics matter, how to wire JUnit XML, Allure or ReportPortal into CI, and when you need run evidence.

Published on:

Test automation reporting is the process of collecting the results of automated test runs, combining them across jobs and builds, and presenting them so each audience can act. Developers need to see why a test failed, QA leads need flakiness and trends, and release owners need a clear yes or no on whether a build can ship.

A test run that nobody reads is wasted compute. This guide covers what a test automation report should contain, which metrics are worth tracking (and which mislead), how results flow from test runners into CI and dashboards, a comparison of reporting tools, and why a pass/fail line alone is no longer enough when AI writes and heals tests.

TL;DR

Test automation reporting is the process of collecting automated test results, combining them across jobs and builds, and presenting them so each audience can act: developers see why a test failed, QA leads see flakiness and trends, and release owners get a ship or do-not-ship answer. It exists because a test run nobody reads is wasted compute.

What a Test Automation Report Includes

  • Failure detail: Each failure lists the test name, failed step, expected and actual values and stack trace, with a screenshot, video, console log, network log and trace file attached, so a developer can see why it failed.
  • Flaky status: Is a test that passes on retry a pass? No. A test automation report shows it as flaky, a third status beside passed and failed, and tracks its flake rate per test over the last 10 or 20 runs.
  • Release verdict: A ship or do-not-ship call based on written gate rules, generated by the pipeline with the blocking failures and their evidence, gives the deploy approver an answer on one page.

How Results Reach CI

  • JUnit XML: JUnit XML is the closest thing to a universal result format. Almost every test runner can write it, and almost every CI tool and dashboard can read it, including Jenkins and Azure DevOps.
  • Sharded runs: Does a sharded suite need a merge step? Yes. Each shard writes its own results, so Playwright's blob reporter and merge-reports, or Allure and ReportPortal, combine them into one report.

Test Automation Reporting Tools

  • Allure Report: Allure Report is an HTML report with history between runs and many framework adapters. Open source: Yes. You host and publish it. Allure 3 is rewritten in TypeScript and adds quality gates and a plugin system.
  • ReportPortal: ReportPortal is a dashboard with real-time views across launches and ML-based auto-analysis of failure reasons. Open source: Yes, under Apache 2.0. Self-hosted: Yes, or paid hosted.
  • Test Intelligence: TestMu AI Test Intelligence ranks flaky tests by flake rate with high, medium or low severity and clusters similar failures by error message. It is built around runs on TestMu AI.

What Is Test Automation Reporting?

Test automation reporting is the part of test automation that turns raw run output (pass, fail, skip, logs, screenshots, timings) into information people use to make decisions. It covers three jobs:

  • Collecting results from every runner and every parallel job, usually in a standard format such as JUnit XML or JSON.
  • Aggregating them per build, per branch and over time, so a single failure can be compared with its history.
  • Presenting them to different audiences: a failure view for the developer, a trend view for the QA lead and a release-readiness view for whoever approves the deploy.

Test automation reporting is narrower than general test reporting. A test summary report documents a whole test cycle, including manual testing, scope and sign-off. A test automation report is generated by the pipeline on every run, with no one writing it by hand.

What Should a Test Automation Report Include?

A test automation report should include enough to answer three questions without opening another tool: what ran, what failed and why, and whether the build is safe to ship. The fields below are the minimum TestMu AI recommends for a CI-generated report.

FieldExampleWho uses it
Build identityCommit SHA, branch, PR number, pipeline run IDEveryone; this ties results to code
EnvironmentBrowser and version, OS, device, app build, test environment URLDevelopers reproducing a failure
TotalsPassed, failed, skipped, flaky (passed on retry)Release owner
DurationTotal wall-clock time and slowest 10 testsQA lead, platform team
Each failureTest name, failed step, assertion message (expected vs actual), stack traceDeveloper
Failure artifactsScreenshot, video, console log, network log, trace fileDeveloper
Failure categoryProduct bug, test (automation) bug, environment issue, unknownQA lead
HistoryDid this test fail before? When did it last pass? Flake rateQA lead, developer
OwnerTeam or code owner for the failing areaTriage
VerdictShip / do not ship, based on written gate rulesRelease owner

Two fields teams most often leave out are flaky (passed on retry) and failure category. Without the first, retries hide instability. Without the second, a red build looks the same whether the product broke or a test server ran out of memory.

Which Test Automation Metrics Matter?

The test automation metrics that matter are the ones that change a decision. The table lists the useful ones, how to calculate them and the trap in each.

MetricHow to calculateWhat it tells youThe trap
Pass ratePassed ÷ (passed + failed), per runIs this build healthy?98% sounds good until the 2% is checkout. Always show which tests failed.
Flake rateTests that failed then passed on retry with no code change ÷ total runs of that test, over the last N runsWhich tests the team cannot trustMeasured per suite, it hides the five tests causing most of the noise. Measure per test.
Suite duration (p50, p90)Wall-clock time per run, by percentileWhether feedback is fast enoughAverages hide the slow runs that block merges.
Failure category splitShare of failures by product, test, environmentWhere to spend fixing timeNeeds someone (or a tool) to label failures consistently.
Mean time to triageTime from a red build to a labelled causeHow quickly failures get looked atRarely measured; often the real bottleneck.
Escaped defectsProduction bugs that an existing or missing test should have caughtWhether the suite protects what mattersNeeds a link from incident reports back to tests.
Requirement coverageRequirements or user stories with at least one passing automated testGaps in what is testedCode coverage is not the same thing; 90% line coverage can skip the riskiest journey.

Flakiness is not a niche concern. In TestMu AI's State of AI in Quality Engineering 2026 community survey, test maintenance (named by 19.3% of teams) and flaky tests (18.7%) were the two largest drains on QA time. A report that does not separate flaky failures from real ones adds to that cost.

How Does Test Automation Reporting Work in a CI Pipeline?

Test automation reporting in a CI pipeline works in four steps: each test runner writes results to a file, the pipeline saves or merges those files, a reporting tool turns them into views, and the gate reads the result.

Test runner ──> result files ──> CI artifacts / merge ──> report or dashboard ──> gate + notification
 (Playwright,     (JUnit XML,      (per job, per shard)     (HTML, Allure,          (block merge,
  pytest, JUnit)   JSON, blob)                               ReportPortal, SaaS)     Slack, ticket)
How test automation results flow from test runners through CI into reports, dashboards and release gates.

Step 1: Write Results in a Standard Format

JUnit XML is the closest thing to a universal format. Almost every runner can write it and almost every CI tool and dashboard can read it. A minimal file looks like this:

<testsuites tests="3" failures="1" time="41.2">
  <testsuite name="checkout" tests="3" failures="1" time="41.2">
    <testcase classname="checkout" name="applies promo code" time="12.8">
      <failure message="Expected total $116.10, got $129.00">
        AssertionError at checkout.spec.ts:42
      </failure>
    </testcase>
    <testcase classname="checkout" name="charges saved card" time="15.1"/>
    <testcase classname="checkout" name="sends receipt email" time="13.3"/>
  </testsuite>
</testsuites>

How common runners produce it:

# pytest
pytest --junitxml=reports/junit.xml

# Maven Surefire writes XML to target/surefire-reports/ by default
mvn test
// playwright.config.ts: an HTML report for people plus JUnit XML for tools
import { defineConfig } from '@playwright/test';
export default defineConfig({
  reporter: [
    ['html', { open: 'never' }],
    ['junit', { outputFile: 'results.xml' }],
  ],
});

Step 2: Merge Results From Parallel Jobs

Once a suite is sharded across machines, each shard writes its own results. Reports must be merged, or each one shows only a slice. Playwright handles this with the blob reporter:

# on each shard
npx playwright test --shard=1/4 --reporter=blob
# after all shards finish, in one job that downloads every blob-report folder
npx playwright merge-reports --reporter=html ./all-blob-reports

Other stacks merge JUnit XML files in the CI tool or in the reporting tool (Allure and ReportPortal both accept results from many jobs into one launch or report).

Step 3: Publish to Where People Already Look

  • Jenkins: the JUnit plugin step junit 'target/surefire-reports/*.xml' adds a test results page and trend chart to each build.
  • Azure DevOps: the PublishTestResults@2 task publishes JUnit or NUnit results to the pipeline's Tests tab.
  • GitHub Actions: upload the HTML report as an artifact, or use a marketplace action that turns JUnit XML into check annotations on the pull request.
  • Dashboards: push results to Allure, ReportPortal or a SaaS analytics tool for cross-build history.

Step 4: Let the Result Drive the Gate

The CI job's exit code, not the report, should block the merge. The report explains the failure. Keep the gate rule simple and written down, for example: "any failure in @smoke or @core blocks merge; failures in quarantined tests do not." For where each gate sits in a pipeline, see DevOps testing.

What Are the Best Test Automation Reporting Tools?

The best test automation reporting tool depends on whether you need a single-run report, cross-build history or AI-assisted failure triage. The table compares common options as of Nov 2026; check each project's site for current details.

ToolTypeStrengthsWatch out for
Built-in runner reports (Playwright HTML, pytest-html, Surefire)Free, per runZero setup; Playwright's HTML report includes traces, screenshots and videoNo history across builds
CI-native test tabs (Jenkins JUnit plugin, Azure DevOps Tests tab, GitLab test reports)Free with the CI toolResults sit next to the build; basic trendsLimited filtering and failure analysis
Allure ReportOpen sourceRich HTML report, history between runs, many framework adapters. Allure 3 is rewritten in TypeScript and adds quality gates and a plugin systemYou host and publish it; history needs setup (see our Allure report tutorial)
ReportPortalOpen source (Apache 2.0), self-hosted or paid hostedReal-time dashboards across launches; ML-based auto-analysis of failure reasons; Jira and Azure DevOps integrationsRunning and upgrading the server is your job
ExtentReportsOpen source library (Java/.NET)Long-standing HTML reports for Selenium/TestNGThe Java repository's README says it is being sunset and replaced by ChainTest; plan migrations accordingly
Test management tools (TestRail, Xray, TestMu AI Test Manager)CommercialLink automated results to test cases, requirements and releasesNeed result import set up; usually not built for failure triage
TestMu AI Test AnalyticsCommercial, part of the TestMu AI platformPre-built and custom dashboards from 30+ widgets; scheduled email reports with CSV, Excel and PDF export; failures auto-classified as product bug, automation bug or environment issue; AI root-cause suggestions from network, console and Selenium logsBuilt around runs on TestMu AI (HyperExecute, the cloud grid, Kane CLI); confirm support for results from other infrastructure before you rely on it
TestMu AI Test IntelligenceCommercial, part of the TestMu AI platformFlaky tests ranked by flake rate with high, medium or low severity; similar failures clustered by error message; error and duration trends across CI buildsSame scope caveat as Test Analytics

For Selenium-specific options, see the list of reporting tools for Selenium.

How to choose:

  • One team, one framework, under ~1,000 tests: the runner's HTML report plus CI test tabs is usually enough.
  • Several teams or frameworks, need history: Allure (static, simple) or ReportPortal (server, live dashboards, ML triage).
  • Large parallel runs where triage time is the bottleneck: a tool that classifies failures and tracks flakiness per test, such as ReportPortal's auto-analysis or TestMu AI Test Intelligence.
  • Regulated releases: whatever you choose, keep the raw artifacts and tie them to builds (see below).

How Should Flaky Tests Appear in a Test Automation Report?

Flaky tests should appear in a test automation report as their own status, separate from passed and failed. A test that fails, is retried and then passes is not a pass. It is a warning that the test or the product has a timing or data problem.

A practical approach:

  • Report three outcomes, not two: passed, failed and flaky (passed on retry). Playwright, for example, marks tests that pass on retry as "flaky" in its HTML report.
  • Show flake rate per test over a rolling window (for example, the last 10 or 20 runs) and sort by it. The top five flaky tests usually cause most of the noise.
  • Show quarantine status. Quarantined tests should still run and still appear in the report, labelled so nobody mistakes their failures for blockers.
  • Alert on change, not on state. "Test X became flaky this week" is useful. A daily list of the same 40 flaky tests gets ignored.
Playwright HTML report showing a failed price test with a trace and a separate flaky test.
Detect and fix flaky tests with TestMu AI

Why Is a Pass/Fail Report No Longer Enough?

A pass/fail report is no longer enough because it records a claim, not the proof behind it. When tests are written by people and run unchanged, a green tick is easy to trust. When AI agents write tests, heal broken steps or decide which tests to skip, reviewers need to see what actually happened in the run.

The pressure is real. In TestMu AI's 2026 survey, 81% of respondents said they had merged AI-written code or tests they did not fully understand, and only 37% keep an audit trail of what their AI did (same survey; community sample, not TestMu AI customers).

What evidence looks like in practice:

  • Per-step screenshots and the DOM or accessibility snapshot at each assertion.
  • Network and console logs for the whole run.
  • The exact test definition that ran, including any steps an agent healed, with a log of what changed.
  • The verdict with the expected and actual values, not only "failed".
  • A tamper check, so edits made after the run can be detected.

Kane CLI, TestMu AI's terminal testing agent, saves each run's steps, screenshots, console and network logs and verdict in a .evidence file. You can open it in a viewer, upload it to TestMu AI Test Manager, or post it as a pull-request comment through the GitHub Action. When Kane CLI heals a step, it re-finds the element and logs the change, but it does not change the test's acceptance criteria. A wrong total is reported as a bug, not healed into a pass. TestMu AI explained the format, including how the test definition is hashed inside the sealed pack, in its Testμ 2026 talk on evidence-based QA.

Kane CLI evidence viewer showing each step, screenshot and the failed total assertion.
Note

Try it

Note: npm install -g @testmuai/kane-cli, then run one plain-English test against your app and open the evidence it produces. In CI, add --name to the run and keep the .testmuai/evidence/ folder as an artifact (set include-hidden-files: true in actions/upload-artifact, because it skips dot-folders by default). Get started with Kane CLI.

How Does Test Reporting Support Compliance and Audits?

Test reporting supports compliance and audits by proving that a specific build was tested before release and that the results were not changed afterward. Fintech and insurance teams (rate and premium calculations), healthcare and MedSpa software teams (patient records and booking systems), and legal and compliance tools all face reviews where "the tests passed" must be backed by records.

What auditors and internal risk teams typically ask for, and how a test automation report answers:

QuestionReport answer
Was this release tested?Run ID tied to the commit SHA and the deploy record
What exactly was tested?The versioned test definitions that ran, with tags such as @compliance
Did any check fail, and who approved the release anyway?Failure list plus recorded gate overrides with a named approver
Can we see the result months later?Artifacts stored beyond the CI tool's default retention period
Was test data safe?Confirmation that runs used synthetic data, not production records

Keep raw artifacts (result files, screenshots, logs, evidence packs) in storage you control, with retention set to match your audit window, not your CI vendor's default.

What Does a Release-Readiness Test Report Look Like?

A release-readiness test report is a one-page, pipeline-generated summary that gives the deploy approver a verdict, the blocking failures with evidence, and the flaky tests under watch. Here is a template; generate it from the pipeline rather than writing it by hand.

RELEASE READINESS: build 2026.11.20-4 (commit a1b2c3d, PR #1842)
Verdict: DO NOT SHIP (1 blocking failure)

Gates
  Smoke   (22 tests)   22 passed
  Core    (318 tests)  316 passed, 1 failed, 1 flaky
  Full    (2,940 tests) nightly, last run 2026.11.19: 2,931 passed, 6 failed (non-blocking), 3 flaky

Blocking failure
  checkout › applies promo code
  Expected total $116.10, got $129.00 (promo not applied)
  Category: product bug · Owner: payments team · First failed: this build
  Evidence: screenshot, network log, trace → [link]

Flaky (not blocking, under watch)
  search › filters by size: flake rate 3/20 runs · quarantined · owner: search team · fix by 2026.11.27

Duration: PR stage p90 8m 40s (budget 10m)

What Are Best Practices for Test Automation Reporting?

Best practices for test automation reporting keep reports short, honest and tied to decisions:

  • Generate reports on every run, automatically. If someone has to build the report by hand, it will be late or skipped.
  • Lead with the verdict and the failures. Put passed tests at the bottom or collapse them.
  • Report flaky as its own status and track flake rate per test.
  • Label every failure with a category (product, test, environment) before the end of the day.
  • Attach artifacts to every failure: screenshot, logs, trace. A failure without artifacts gets re-run instead of fixed.
  • Keep history. One run says little; the same test failing on 4 of the last 10 runs says a lot.
  • Send each audience its own view. A Slack message with the verdict and links for the team; a weekly trend email for leads; a dashboard for deep dives.
  • Retain evidence as long as your audit window, not as long as your CI default.
  • Do not report pass rate alone. Always pair it with which tests failed and why.

Conclusion

Start with the fields table: open the report from your last red build, check whether it shows flaky status and a failure category, and write the gate rule down. Then run one critical journey with Kane CLI and keep its evidence file with the build.

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.

Author

...

Sandeep Yadav

Blogs: 12

  • Linkedin

Sandeep Yadav is a Senior Software Engineer at TestMu AI, where he builds the platform's test intelligence and AI-native engineering systems. He has architected autonomous GitHub Apps, vector-search code intelligence, and self-diagnosing QA workflows, and designed distributed platforms that process 2M+ daily test executions and 1B+ events, turning high-volume test, log, and code data into intelligent, self-optimizing systems. He works on embedding reasoning models into production infrastructure to power autonomous review, root-cause analysis, and analytics workflows. He brings over four years of engineering experience with deep expertise in the Elastic Stack, Apache Kafka, and Redis. Earlier he engineered a GDPR-compliant, end-to-end-encrypted secure web-chat application at Mithi. A Facebook Hackercup 2021 Round 2 qualifier and merit-scholarship recipient, Sandeep holds a B.Tech in Electrical Engineering from Delhi Technological University.

Reviewer

...

Srinivasan Sekar

Reviewer

  • Linkedin

Srinivasan Sekar is Director of Engineering at TestMu AI, where he leads engineering and open-source initiatives behind the Selenium and Appium automation grid and owns TestMu AI's MCP Server. A committer to Appium and a contributor to Selenium, WebdriverIO, Taiko, and AppiumTestDistribution, he brings over 15 years of experience in quality engineering and open-source technologies. He is the author of the Apress book 'The MCP Standard: A Developer's Guide to Building Universal AI Tools with the Model Context Protocol,' a Certified Kubernetes and Cloud Native Associate, and an international conference speaker. Before TestMu AI he spent over eight years at Thoughtworks as a Principal Consultant and Quality Architect. Srinivasan holds a B.Tech in Information Technology from Anna University.

Add to Google preferred sources

Summarise with AI

Copied to Clipboard!
...

3000+ Browsers. One Platform.

See exactly how your site performs everywhere.

Try it free
...

Write Tests in Plain English with KaneAI

Create, debug, and evolve tests using natural language.

Try for free

Test Automation Reporting FAQs

Did you find this page helpful?

More Related Blogs

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