@webtestingsuite/test-reporter
v1.0.1
Published
Send your end-to-end test results to Web Testing Suite as they run: test health, flaky tests, failure traces and pull-request comments
Readme
@webtestingsuite/test-reporter
Send your own end-to-end test suite's results to Web Testing Suite as the tests run. Each test becomes a check of the run, so test health, flaky detection, quarantine, failure groups, regression alerts and pull-request comments work for your suite as they do for Web Testing Suite's own tests. Failed tests keep their trace and video.
npm i -D @webtestingsuite/test-reporterAdd it to the reporter list in your test runner's configuration file, next to the reporters you already use:
export default {
reporter: [['list'], ['@webtestingsuite/test-reporter', { projectId: 'proj_...' }]],
use: { trace: 'retain-on-failure', video: 'retain-on-failure' },
};Set WTS_API_KEY (an API key with the scan:write scope; keep it in a CI secret) and run your tests as usual.
| Option / variable | Meaning |
|---|---|
| projectId / WTS_PROJECT_ID | The project the run belongs to |
| url / WTS_URL | Or: the site the suite tests (the project for that site is used; default: the configuration's baseURL) |
| WTS_API_URL | Default https://webtestingsuite.com |
| uploadArtefacts: false | Do not upload traces and videos of failed tests |
What is sent: each test's title, file and line, its test project (browser), outcome (passed, failed, flaky, skipped), retries, duration and error message, plus the trace and video of a failed test (4 MB each at most, kept as long as your plan keeps artefacts). The branch, commit and CI run link are taken from your CI system's standard variables when present.
A run counts against your run-minute allowance like any run: the suite's time at a quarter of the cloud browser rate (your machine ran the tests), at least one run-minute. The reporter never fails your build: if Web Testing Suite cannot be reached it prints why and your tests carry on.
License
Commercial software. Copyright (c) 2026 Prozen Technologies OPC Pvt Ltd. All rights reserved. Web Testing Suite is a product of Prozen Technologies OPC Pvt Ltd. Use is governed by the LICENSE file included with this package and the Terms of Service.
