kwikqa 0.10.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +30 -4
- package/dist/kwikqa.mjs +182 -157
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
What's new in each release of the KwikQA CLI.
|
|
4
4
|
|
|
5
|
+
## 0.11.0 — 2026-11-29
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `kwikqa summarize` collects test counts from passing and failing CI jobs without a KwikQA
|
|
10
|
+
account. A manifest reconciles expected shards, counts replayed artifacts once, and reports gaps
|
|
11
|
+
from missing reports or canceled jobs.
|
|
12
|
+
- `kwikqa report --format json` and `--format markdown` export a local failure handoff from a
|
|
13
|
+
recorded analysis. The HTML report remains the default.
|
|
14
|
+
|
|
5
15
|
## 0.10.1 — 2026-11-25
|
|
6
16
|
|
|
7
17
|
- `kwikqa status` shows the top-up packs and grants a company has left beyond its pool, and when
|
package/README.md
CHANGED
|
@@ -161,9 +161,9 @@ npx kwikqa analyze --report reports/junit.xml --html
|
|
|
161
161
|
```
|
|
162
162
|
|
|
163
163
|
You get failure groups, a diagnosis, and the [failure report](#failure-report). Only the runs named
|
|
164
|
-
under [supported frameworks](#supported-frameworks) are repaired and validated
|
|
165
|
-
`fix`
|
|
166
|
-
repairs, use its JSON reporter as shown above.
|
|
164
|
+
under [supported frameworks](#supported-frameworks) are repaired and validated. For a report-only run,
|
|
165
|
+
`fix` explains why and makes no model request. The CLI's `--capture` flag works with Playwright,
|
|
166
|
+
Cypress, and WebdriverIO. For Playwright repairs, use its JSON reporter as shown above.
|
|
167
167
|
|
|
168
168
|
Some details depend on the reporter:
|
|
169
169
|
|
|
@@ -219,7 +219,8 @@ doesn't. It never runs one from outside the repository, so pnpm's global virtual
|
|
|
219
219
|
| `npx kwikqa analyze` | Diagnose the failures in the latest report. `--report <path>` picks a report file or a directory of one run's reports; `--framework` names the framework of a JUnit report; `--local` builds the evidence summary without sending anything; `--no-changes` leaves out recent code changes (see below). |
|
|
220
220
|
| `npx kwikqa analyze --capture` | First re-run the failing tests so every failure has full evidence. Playwright runs with full tracing; with Playwright 1.59+ and [Playwright CLI](https://www.npmjs.com/package/@playwright/cli) installed, it also pauses locator failures at the failing line and asks Playwright for locators of the closest elements (`--no-probe` skips this). Cypress and WebdriverIO re-run the failing specs with your own config plus KwikQA's reporter and failure capture, which records each failed attempt's DOM, command log, console, and network. Asks before running anything; `--yes` approves in CI. |
|
|
221
221
|
| `npx kwikqa analyze --html` | Also write the [failure report](#failure-report), `kwikqa-report.html`; `--output <path>` writes it elsewhere. |
|
|
222
|
-
| `npx kwikqa report` | Write
|
|
222
|
+
| `npx kwikqa report` | Write a report from a recorded analysis. Choose HTML (default), JSON or Markdown with `--format`. Use `--run <id>` to select a run and `--output <path>` to choose the file. |
|
|
223
|
+
| `npx kwikqa summarize` | Count results from every participating suite offline. Use `--suite <id>` and, for parallel jobs, `--shard <id>`. Use `--manifest <path>` to reconcile the shard summaries with CI. Both modes write JSON to stdout or the file given by `--output`. See [Suite coverage](#suite-coverage). |
|
|
223
224
|
| `npx kwikqa ci` | In a CI job: analyze as `analyze --yes --html` does, then publish a summary. On GitHub Actions that is the job summary and one pull-request comment, on Azure Pipelines a build summary and one pull-request thread, on GitLab CI/CD the job's log and one merge-request note, and on Jenkins the console log and one comment on a GitHub or GitLab pull request; with your webhooks, also a Slack or Teams message. See [CI](#ci). Without a KwikQA token it analyzes locally. It takes `--report`, `--framework`, `--local`, `--no-changes`, and `--output` as `analyze` does, and `--notify always` to post to chat after every run, not only failed ones. |
|
|
224
225
|
| `npx kwikqa fix` | Propose a repair for a test-side cause, show the diff and validation commands, and apply it if you approve. First it offers to re-run the failing tests once: a test that passes now is flaky, so KwikQA reports it and requests no repair. It starts with the failure group whose test-side diagnosis is strongest; if the model declines, or its proposal fails KwikQA's checks, it asks about the next such group, at most three, each with its own preview. One `fix` counts as one fix however many groups it tries. `--group <n>` repairs only group n, as `analyze` numbered it. `--propose-only` stops after the proposal. A repair of shared test support, such as a page object, fixture, or helper, is validated over every test that uses it: first those tests run once on the current code, after you approve, and afterwards each must pass again, three times in a row for Playwright, Cypress, and WebdriverIO and once for Maven, Gradle, and pytest, so a test the patch breaks is caught. In GitHub Actions, Azure Pipelines, and GitLab CI/CD, a committed `ci.fix` policy lets it run without a terminal and open a draft pull request; see [Fix pull requests](#fix-pull-requests). |
|
|
225
226
|
| `npx kwikqa validate` | Run the approved validation. The repaired test must pass three times in a row, with retries off (once, for a shared Maven, Gradle, pytest, or Cucumber-JVM repair). Passing keeps the patch; failing rolls it back. When other tests failed with the same cause, it then offers to re-run them once and names any that still fail, so you can run `fix` again for them; the patch stays either way. |
|
|
@@ -254,6 +255,13 @@ blocks its script and styles, as Jenkins does for archived HTML by default. It h
|
|
|
254
255
|
redacted evidence a request preview shows, so share it the way you share CI logs. KwikQA only ever
|
|
255
256
|
replaces a file it wrote itself, and `init` offers to add `kwikqa-report.html` to `.gitignore`.
|
|
256
257
|
|
|
258
|
+
Use `npx kwikqa report --format json` for a versioned failure handoff, or
|
|
259
|
+
`npx kwikqa report --format markdown` to read it alongside an issue or in your editor.
|
|
260
|
+
The default files are `.kwikqa/handoff.json` and `.kwikqa/handoff.md`. Both include failure counts,
|
|
261
|
+
observed flaky tests, affected test locations, ownership diagnoses and their evidence.
|
|
262
|
+
Treat these local files like CI logs. To publish one in CI, use `--output` with an ignored artifact
|
|
263
|
+
directory. This keeps the generated file out of subsequent change evidence. Exporting works offline.
|
|
264
|
+
|
|
257
265
|
## Plans
|
|
258
266
|
|
|
259
267
|
| Plan | Monthly | Yearly | Analyses / month | Fixes / month |
|
|
@@ -458,6 +466,24 @@ steps:
|
|
|
458
466
|
declare it in the job that runs KwikQA:
|
|
459
467
|
`id_tokens: { KWIKQA_ID_TOKEN: { aud: "https://kwikqa.com" } }`. The token isn't stored.
|
|
460
468
|
|
|
469
|
+
### Suite coverage
|
|
470
|
+
|
|
471
|
+
After each participating suite or shard finishes, use `kwikqa summarize` on its original reporter
|
|
472
|
+
output. Keep `kwikqa ci` on `if: failure()`. The summary contains aggregate counts and source
|
|
473
|
+
time when available. It runs offline and needs no KwikQA account.
|
|
474
|
+
|
|
475
|
+
```bash
|
|
476
|
+
npx kwikqa summarize --suite browser --shard 1 --report test-results/results.json \
|
|
477
|
+
--output .kwikqa/suite-summary.json
|
|
478
|
+
npx kwikqa summarize --manifest coverage/manifest.json --output .kwikqa/suite-coverage.json
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
For GitHub Actions, run the collection step with `if: ${{ !cancelled() }}` and
|
|
482
|
+
`continue-on-error: true`, or select `mode: suite-summary` in the KwikQA Action with a CLI version
|
|
483
|
+
that provides the command. After the workflow ends, use the manifest to include every expected
|
|
484
|
+
job and its CI conclusion, including jobs that were canceled before writing their report.
|
|
485
|
+
[GitHub Actions setup and manifest example](docs/architecture/ci-integration.md#suite-coverage-for-the-pilot)
|
|
486
|
+
|
|
461
487
|
### Fix pull requests
|
|
462
488
|
|
|
463
489
|
In GitHub Actions, Azure Pipelines, and GitLab CI/CD, `kwikqa fix` can repair a failure on the
|