Test diagnosis and repair guide
KwikQA diagnoses failed tests using your runner's report, available browser evidence, and test source. For eligible browser-test failures it proposes a test-code repair, shows you the diff, and keeps the change when validation passes. Start with your framework below or add KwikQA to CI.
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.
Install and set up
Install KwikQA, point it at your test reports, create kwikqa.config.json, and sign in.
Your first repair
A complete session from a failing test to a validated repair, with every prompt explained.
Running in CI
A summary on the pull request, repairs as draft pull requests, and Slack or Teams messages.
Validate test repairs
Hold test changes from coding agents or Playwright's healer to KwikQA's gates.
Bring your own key
Use KwikQA with your own model key and the model endpoint you choose.
Troubleshooting
What each outcome and reason code means, and what to do about the common ones.
Analyze your first report
Generate a report with the guide for your runner, then replace path/to/report with the file or directory from that run.
npx kwikqa analyze --report path/to/report --local --html
This groups failures and writes kwikqa-report.html without an account. For model diagnosis and a validated repair, install and sign in, then follow your first repair.
The three commands
analyze- Builds a redacted evidence packet from the latest report, shows you exactly what would be sent, and returns ranked causes. Each cause names its probable owner (test support, application, or environment) and an evidence grade from
strongtoinsufficient. fix- When the cause belongs to test code, asks for a repair proposal, checks it against the repair rules, and shows you the intent, diff, and validation commands. If you approve, it applies the patch and stops at
awaiting-validation. validate- Reruns the original test, and any tests the change affects, in fresh processes. A pass keeps the patch as
repaired. Anything else rolls it back. You get one retry withfix --retry.
Requirements
- Node.js 22, 24, 26, or later: any release of the long-term support lines.
- For repairs of Playwright, Cypress, or WebdriverIO runs, a Node-based Playwright Test, Cypress (end-to-end), or WebdriverIO (Mocha or Jasmine) project in TypeScript or JavaScript, with dependencies already installed through npm, pnpm, Yarn, or Bun, including packages of a monorepo. KwikQA runs your project's own copy and never installs packages or browsers.
- For repairs of Java, Cucumber-JVM, or pytest runs, the project's own tools, already on the machine: a JDK with Maven or Gradle, or a
.venvorvenvfor pytest. KwikQA never installs them. Setup lists the details. - A git repository.
- macOS, Linux, or Windows. Maven and Gradle validation isn't available on Windows.
Repairs are limited to the supported frameworks, and for Java, Python, and Cucumber-JVM runs to their end-to-end browser tests. To diagnose a run from any other framework, you need Node.js and the run's report.
KwikQA's report readers are pinned by real runs of Playwright 1.55 and 1.64, Cypress 16.2, WebdriverIO 10.1, Vitest 4.1, Jest 30.5, Mocha 11.8, pytest 8.4, JUnit 6.1, and TestNG 7.12. Other versions run, with a warning in the result.
Where to go next
- Your first repair: a full session, explained line by line.
- The workflow: what happens at each step and why.
- Data and privacy: exactly what leaves your machine.