@webtestingsuite/cli
v1.0.1
Published
Run Web Testing Suite tests from your terminal or CI, fail the build below a score, and record journeys
Readme
@webtestingsuite/cli
Run your web tests with Web Testing Suite from a terminal or a CI job, and record journeys in a browser.
It has no dependencies.
export WTS_API_URL=https://webtestingsuite.com
export WTS_API_KEY=wts_... # Settings → Security → API keys (scopes: scan:read scan:write report:read)
npx @webtestingsuite/cli run https://example.com --fail-under 80 --fail-on critical
# a score only describes what was tested: fail when under half of the pages found were tested,
# and test the pages a plan's page limit left (Pro and above; each follow-up run counts against your quota)
npx @webtestingsuite/cli run https://example.com --min-coverage 50 --run-rest 2
# also analyse a checked-out repository (uploads its source files; metered in run-minutes like any run)
npx @webtestingsuite/cli run https://example.com --repo . --fail-on high
npx @webtestingsuite/cli run https://example.com --format sarif --output wts.sarif
npx @webtestingsuite/cli report run_123 --format junit --output wts.xml
# record a journey in a browser window, then paste the file into Project > Test inputs > Journeys
npx @webtestingsuite/cli record https://example.com --output checkout.jsonExit codes: 0 passed, 1 did not pass the thresholds, 2 error. Runs count against your plan's monthly run-minute allowance like runs started in the app. Run wts --help for every option.
wts scan and --scan-rest still work as aliases of wts run and --run-rest, so existing pipelines keep working.
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.
