kwikqa 0.11.0-rc.1 → 0.12.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 CHANGED
@@ -2,7 +2,14 @@
2
2
 
3
3
  What's new in each release of the KwikQA CLI.
4
4
 
5
- ## 0.11.0 — 2026-11-28
5
+ ## 0.12.0 — 2026-11-29
6
+
7
+ ### Added
8
+
9
+ - `kwikqa summarize --manifest` can share reconciled suite counts with Failure trends when an
10
+ organization admin enables the repository and the command uses `--share-insights`.
11
+
12
+ ## 0.11.0 — 2026-11-29
6
13
 
7
14
  ### Added
8
15
 
package/README.md CHANGED
@@ -220,7 +220,7 @@ doesn't. It never runs one from outside the repository, so pnpm's global virtual
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
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
+ | `npx kwikqa summarize` | Count results from every participating suite offline by default. 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). |
224
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. |
225
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). |
226
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. |
@@ -484,6 +484,21 @@ that provides the command. After the workflow ends, use the manifest to include
484
484
  job and its CI conclusion, including jobs that were canceled before writing their report.
485
485
  [GitHub Actions setup and manifest example](docs/architecture/ci-integration.md#suite-coverage-for-the-pilot)
486
486
 
487
+ To upload reconciled counts to your organization's Failure trends view, an admin enables
488
+ Insights and the GitHub repository in the dashboard. Run the manifest command after the
489
+ workflow attempt ends with a KwikQA credential, such as the team's `KWIKQA_TOKEN`.
490
+
491
+ ```bash
492
+ npx kwikqa summarize --manifest coverage/manifest.json --output .kwikqa/suite-coverage.json \
493
+ --share-insights --started-at "$attempt_started_at" --branch "$head_branch"
494
+ ```
495
+
496
+ Use the attempt's UTC start time for `--started-at`. Omit `--branch` when the provider has no
497
+ branch name. The explicit `--share-insights` flag uploads only run and suite identifiers,
498
+ branch and start time, shard coverage, and outcome counts. The CLI writes the reconciliation
499
+ before attempting the upload, and a failed upload reports an error. Keep the sharing step
500
+ separate from the tests' CI verdict.
501
+
487
502
  ### Fix pull requests
488
503
 
489
504
  In GitHub Actions, Azure Pipelines, and GitLab CI/CD, `kwikqa fix` can repair a failure on the