Install and set up
Start with the framework support matrix if you already have a report or need to check repair eligibility.
Supported frameworks
Choose the guide for your runner and the report it produces. Repair and validation share the report requirements below. Each repair also has to pass KwikQA's repair rules.
| Framework or input | Diagnose | Repair | Validate | --capture | Reporter or format | OS caveats |
|---|---|---|---|---|---|---|
| Playwright Test (JS/TS) | Yes | With Playwright JSON | With Playwright JSON | With Playwright JSON | Playwright JSON. JUnit and CTRF are diagnose-only. | Use your installed Playwright browsers. |
| Cypress E2E | Yes | Yes | Yes | Yes | KwikQA reporter (recommended), Mochawesome JSON, or Cypress JUnit XML. | Use a browser supported by your Cypress installation. |
| WebdriverIO (Mocha or Jasmine) | Yes | Yes | Yes | Yes | KwikQA reporter (recommended), WDIO JSON, or WDIO JUnit XML. | Use your installed browsers and drivers. |
| Java (JUnit or TestNG, Maven or Gradle) | Yes | Browser tests | Browser tests | No | JUnit XML from the build, or TestNG's testng-results.xml. | Maven and Gradle validation require macOS or Linux. |
| Cucumber-JVM (Maven or Gradle) | Yes | Browser scenarios with resolved step definitions | Browser scenarios with resolved step definitions | No | Cucumber json plugin. | Maven and Gradle validation require macOS or Linux. |
| pytest | Yes | Browser tests | Browser tests | No | JUnit XML (recommended), KwikQA pytest reporter, or CTRF with Python file identities. | Use the project's .venv or venv. |
| Jest | Yes | No | No | No | jest-junit or CTRF. | Node.js and the report. |
| Vitest | Yes | No | No | No | Built-in JUnit reporter. | Node.js and the report. |
| Mocha | Yes | No | No | No | mocha-junit-reporter. | Node.js and the report. |
| Cucumber-JS | Yes | No | No | No | Cucumber JSON. | Node.js and the report. |
| Allure results | Yes | No | No | No | One run's allure-results directory. | Node.js and the report. |
| CTRF reports | Yes | Eligible pytest only | Eligible pytest only | No | CTRF JSON. For pytest repair, every test must name its Python file. | pytest validation needs the project's virtual environment. |
| Generic JUnit XML | Yes | No | No | No | JUnit XML from an unidentified runner. | Node.js and the report. |
For Java, Cucumber-JVM, and pytest, KwikQA follows the failing tests' source, fixtures, and helpers to a supported browser library. Unit tests and groups whose browser use cannot be confirmed remain eligible for diagnosis. Java and Python evidence adapters can record evidence during the original test run independently of the CLI's --capture flag.
Not yet supported
Dedicated support excludes WebdriverIO with Cucumber, Robot Framework, Playwright .NET and NUnit, Ruby/RSpec/Capybara, and Cypress Component Testing. If one of these runners exports compatible JUnit XML or CTRF, try analyze --report <path> for generic report intake. Maven and Gradle reports can be diagnosed on Windows. Run their repair validation on macOS or Linux.
1. Install
Add KwikQA as a development dependency of the project that runs your Playwright, Cypress, or WebdriverIO tests. For a JUnit, TestNG, pytest, or other framework's report, you need only Node.js to diagnose the run: run it with npx kwikqa. Repairs of those runs need the tools in Supported frameworks.
$ npm i -D kwikqa
Check it with npx kwikqa --version. These docs use npm's commands. With another package manager, install and run KwikQA with its own:
| Package manager | Install | Run |
|---|---|---|
| npm | npm i -D kwikqa | npx kwikqa analyze |
| pnpm | pnpm add -D kwikqa | pnpm exec kwikqa analyze |
| Yarn | yarn add -D kwikqa | yarn kwikqa analyze |
| Bun | bun add -d kwikqa | bunx kwikqa analyze |
Monorepos
Install KwikQA in the package that holds your tests, and run it from that package's folder, where its kwikqa.config.json goes. KwikQA finds that package's Playwright, Cypress, or WebdriverIO in its own node_modules or in the node_modules of a folder above it, up to the repository root. So the root's node_modules works, but a copy installed only in another package doesn't. It never runs one from outside the repository, so pnpm's global virtual store (enableGlobalVirtualStore) isn't supported.
2. Choose your reporter
The framework guides show how to configure your runner, generate a report, and analyze it with KwikQA.
Where KwikQA looks
--report takes a report file or a directory of one run's reports. Without it, KwikQA tries the PLAYWRIGHT_JSON_OUTPUT_NAME and KWIKQA_REPORT_DIR environment variables, then test-results/kwikqa-report.json, test-results/kwikqa/ (KwikQA's Cypress and WebdriverIO reporters), playwright-report/results.json, test-results/results.json, mochawesome-report/, cypress/reports/, cypress/results/, results.json, and report.json. A JUnit report that doesn't say which framework wrote it can be identified with --framework cypress or --framework webdriverio.
3. Create the repair policy
$ npx kwikqa init
init looks at the files git tracks and proposes a kwikqa.config.json listing which files KwikQA may edit. It writes the file only if you agree, and offers to add .kwikqa/ (local run records) to .gitignore. Review and commit the config like any other code. Configuration explains every field.
You can run analyze without kwikqa.config.json. Only fix requires it.
4. Sign in
$ npx kwikqa login
Open https://kwikqa.com/device/ and enter the code: WDJB-MJHT
Opened that page in your browser, with the code filled in. Check it matches, then approve it.
Signed in as octocat.
The page opens in your browser with the code filled in; otherwise, open it yourself and enter the code. Sign in to the website if you aren't already, with GitHub for a personal account or your work email for a company account, check the code, and choose Approve sign-in. The CLI on another machine, such as a remote server, signs in the same way: open the page on any device. Approve only a code you started yourself. The Hobby plan needs no payment details. The CLI stores its token in your user configuration directory, never in the project. Check your plan and usage with:
$ npx kwikqa status
5. Run it
After a run with failures, continue with your first repair. To try KwikQA without an account or sending anything, run npx kwikqa analyze --local: it builds the evidence summary on your machine only.