Description
Canyon is an open-source JavaScript code coverage solution built for collecting coverage from end-to-end tests. It aims to collect coverage more accurately by separating hit data from map data, and it generates the initial coverage data at compile time through a simple Babel configuration. Coverage is restored to the original source with source maps, so reports reflect your code rather than the bundled output. Canyon provides coverage setup for common build tools, including Next.js, Vite and Webpack, and integrations for common UI automation frameworks such as Playwright. It detects CI environment variables automatically and works with CI providers such as GitHub Actions and GitLab Runner. The documentation covers getting started, core concepts such as snapshots, coverage accumulation, changed-code coverage and source restoration, end-to-end testing, a self-hosted community edition, and an ecosystem of packages including @canyonjs/babel-plugin, @canyonjs/vite-plugin and @canyonjs/cli. The project is released under the MIT license and its source is on GitHub under canyon-project.…
Highlights
- Accurate JavaScript coverage from end-to-end tests
- Source map based reports for your original code
- Babel plugin with Vite, Next.js and Webpack support
- Playwright and other UI automation integrations
- Self-hostable community edition
Ratings & Reviews
No ratings yet
Be the first to rate Canyon.
People also visit
Canyon FAQ
What is Canyon?
It is an open-source JavaScript code coverage tool for end-to-end tests. It collects coverage while the app runs and reports on your source code.
How do I set it up?
Add the Babel configuration for your build tool. The docs include quick starts for Vite, React Native and Playwright.
Does it work in CI?
Yes. It detects CI environment variables automatically and supports providers such as GitHub Actions and GitLab Runner.
Can I host it myself?
Yes. The docs have a Self Host section for the community edition, with prerequisites, build steps and configuration.
What license is it under?
Canyon is released under the MIT license.
What are the best Canyon alternatives?
Popular alternatives to Canyon include OtterWise Code Coverage Reporting, Coveralls and Codecov. See all Canyon alternatives











