Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To create a Cypress HTML report that includes screenshots, configure a compatible reporter to save a JSON report for each spec, merge those files, and render the merged result as HTML. Cypress captures failure screenshots automatically during cypress run and saves them separately; the report workflow and screenshot workflow are related, but they are not the same thing.

Choose the right kind of Cypress report

Cypress uses Mocha and supports Mocha-compatible and custom reporters. Its default spec reporter writes results to the terminal; Cypress also bundles teamcity and junit. Cypress does not require one particular HTML reporter. The appropriate choice depends on whether you need a static HTML file, machine-readable results for CI, a report aggregated across specs, or a hosted view.

  • Test execution report: shows test outcomes and related details. Mochawesome is one route to a standalone HTML report.
  • Coverage report: summarizes which application code tests exercised. Cypress coverage tooling can generate HTML coverage output, but that is different from an HTML report of test results.
  • CI or hosted results: Cypress Cloud or a CI provider’s artifact interface can expose run output without requiring one locally generated, combined HTML file.

For a single report spanning several specs, the documented Mochawesome pattern is the clearest: write non-overwriting JSON files per spec, merge them, then render the merged JSON. A fixed output file can be replaced as each spec runs, leaving only the last spec’s results; unique per-spec files avoid that failure mode.

Generate one Mochawesome HTML report across specs

The following workflow follows Cypress’s documented Mochawesome approach. Install the packages as development dependencies in the project that runs Cypress:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
npm install --save-dev mochawesome mochawesome-merge mochawesome-report-generator

Configure the reporter

Set the reporter and options in cypress.config.js (or adapt the configuration to the format your project already uses). This example writes JSON, not per-spec HTML, so the files can be combined before rendering:

const { defineConfig } = require('cypress');

module.exports = defineConfig({
  reporter: 'mochawesome',
  reporterOptions: {
    reportDir: 'cypress/results',
    overwrite: false,
    html: false,
    json: true
  }
});

Use a results folder distinct from cypress/screenshots: the former holds reporter output, while Cypress’s default screenshot folder holds image files. With overwrite: false, multiple specs can produce separate JSON files rather than clobbering one another.

Run tests, merge JSON, and render HTML

From the project root, run the test suite and then the merge and report-generation commands:

npx cypress run
npx mochawesome-merge cypress/results/*.json > cypress/results/merged.json
npx marge cypress/results/merged.json --reportDir mochawesome-report

The rendered file is mochawesome-report/mochawesome.html. The report includes test results, timing information, and test bodies. The JSON merge step is what makes a run across multiple specs produce one combined report rather than a report that only reflects the last spec. Confirm command options against the installed package documentation when upgrading dependencies, because package behavior and flags can change.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Keep the run repeatable

Make sure the merge command runs only after Cypress has completed and written its JSON files. In CI, use shell behavior appropriate to the runner and fail the job if Cypress fails without accidentally skipping artifact-generation steps you need. If an empty or stale report appears, first check that the reporter wrote fresh files under cypress/results and that the merge glob matches those files. Avoid merging the prior run’s JSON by clearing generated output before a new run where appropriate.

Make sure Cypress captures the screenshots

In cypress run, Cypress automatically takes a screenshot when a test fails. This automatic failure capture does not occur in cypress open. The default location is cypress/screenshots; set screenshotsFolder in Cypress configuration if your project needs another location. You can disable automatic failure screenshots with screenshotOnRunFailure: false.

For a deliberate capture during a test, use cy.screenshot() in either cypress open or cypress run. For example:

it('shows the account page', () => {
  cy.visit('/account');
  cy.screenshot('account-page');
});

The screenshot command can capture the application or an element and can save an image under a chosen name. See Cypress’s screenshot command API for the available arguments and options. Screenshots are asynchronous and take around 100 ms; the page can change before capture finishes. Therefore a failure image may not show the exact state at the instant the earlier command failed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Protect sensitive content in images

Failure screenshots may contain account details, tokens, personal information, or other sensitive page content. Cypress screenshot defaults can adjust capture behavior, including blackout selectors. Choose those settings deliberately, and account for who can access CI artifacts or hosted results before retaining screenshots from non-test data.

Choose an alternative reporter when the workflow differs

The standard Mochawesome merge approach is useful when you want a static combined HTML artifact. Other community options may fit different priorities, but their setup, output, compatibility, and aggregation behavior should be checked against the current package documentation rather than assumed to match Mochawesome.

Option What the cited Cypress catalog describes Consider it when
mochawesome with merge and report generator Cypress’s reporter guide documents per-spec JSON output, merging, and a standalone HTML report. You want control over combining results from multiple specs into one static file.
cypress-mochawesome-reporter The community extension catalog calls it a zero-configuration Mochawesome reporter with screenshots. You prefer a simpler setup; verify how its current version handles multi-spec output and CI artifacts.
allure-cypress The catalog describes rich HTML reports with screenshots and steps; its displayed entry lists Allure 3.12.2 and Cypress >=12.17.4. Its report details suit your team, after checking current compatibility and aggregation setup.

The Allure version and Cypress compatibility above are the values displayed in the catalog source; they are not a guarantee of the package’s current release or compatibility. Check the catalog and package guidance for current details before adopting either community option.

View screenshots and reports in CI

Cypress says screenshots taken during a run can be viewed in Cypress Cloud without extra work. Alternatively, CI providers document how to export screenshots as job artifacts. A locally generated Mochawesome file is another option when you need a static report artifact. These approaches solve related but different access needs: Cloud gives a hosted test-results view, a provider artifact makes files available through that CI system, and the merged HTML file can be downloaded or published wherever your team stores build output.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Cypress’s organizing guide notes that generated screenshot and video folders are generally regenerated on each run and commonly kept out of source control. Keep generated evidence as CI artifacts or in the hosted service if you need it after a run; do not assume a particular retention duration for Cypress Cloud, since it depends on current service terms.

Troubleshoot missing or incomplete output

  • No automatic failure screenshot: confirm the test ran under cypress run, not only cypress open, and check that screenshotOnRunFailure has not been set to false.
  • Screenshot saved somewhere unexpected: inspect screenshotsFolder in the Cypress configuration and look for output in that configured directory.
  • Combined report contains only one spec: check that reporter output uses overwrite: false, that each spec writes its own JSON, and that the merge command includes all those files.
  • No merged report or an empty report: confirm the run finished before merging, the output directory contains fresh JSON, and the shell glob points at the correct directory. Run the merge and render commands separately to identify which stage fails.
  • Report exists but lacks expected screenshot evidence: verify that Cypress produced screenshots and that the reporter or report format in use includes or references them. A test-results HTML report and Cypress’s screenshot files are not automatically the same artifact.
  • Screenshot looks later than the failure: this can happen because capture is asynchronous. Treat the image as failure evidence, not necessarily a frame captured at the precise instant of the failed command.
  • Unexpected data is visible: review blackout selectors and artifact access controls, then adjust capture and retention settings before sharing the report.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Performance, reliability, and cost considerations

Generating a combined static report adds a merge and rendering stage after test execution. Ensure CI runs it after Cypress writes per-spec JSON, and preserve the JSON and screenshots if they are useful for diagnosing report-generation failures. Screenshot capture itself is asynchronous; adding deliberate screenshots within tests can also add work to the run, so capture only the states that help diagnose or document behavior.

For reliability, keep the raw machine-readable output when downstream systems need it, and do not rely on a single fixed per-spec filename for a multi-spec run. Decide separately where HTML, screenshots, and videos should be stored, who can view them, and how long the artifacts should remain available. The cited Cypress documentation does not establish one universal Cloud retention duration or one CI artifact retention policy; check the terms for the service and plan you use.

Or skip the browser setup

If your separate need is a screenshot of a website from an API call, rather than Cypress test-run evidence, ScreenshotNeo is a website screenshot API and MCP server for developers. A single GET request returns PNG, JPEG, WebP, or PDF. This does not replace a Cypress test reporter or capture evidence from your test runner.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

For example, request a WebP screenshot of a URL with cURL:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request parameters. Cookie banners and consent overlays, newsletter popups, and chat widgets are removed before the shot; each of those steps can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers indicate the page verdict and billing status. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for AI agents.

The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo’s free plan.

Sources

Frequently Asked Questions

Does Cypress create an HTML test report by default?

No. Its default reporter is spec, which writes results to standard output; use a compatible reporter or external workflow for HTML.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Does a Cypress coverage report show the same information as a test report?

No. Coverage output measures exercised application code, while a test execution report shows test outcomes and related details.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.