kwikqa 0.4.1 → 0.5.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 +167 -0
- package/README.md +53 -29
- package/dist/kwikqa.mjs +148 -144
- package/package.json +3 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
What's new in each release of the KwikQA CLI.
|
|
4
|
+
|
|
5
|
+
## 0.5.0 — 2026-11-14
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `kwikqa login` opens kwikqa.com/device in your browser with the code filled in, so you only check it matches and approve. It still prints the page and the code, and doesn't open a browser in CI, without a terminal, or with `--no-browser`.
|
|
10
|
+
- `kwikqa status` shows your company account: your role, the team this sign-in counts for, and the shared pool, or that the account is waiting for its plan.
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- The CLI follows company accounts and their teams: insights are shared when your organization's admins turn them on, and a member who reaches the limit, or runs `kwikqa upgrade`, is pointed to the company's admins.
|
|
15
|
+
- The CLI tells the KwikQA service its version (`User-Agent: kwikqa/<version>`), so the service knows which versions are still in use.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- A unit test that imports one of your project's modules by name, such as `import shop.cart`, is reported as reaching no browser library. KwikQA used to say it couldn't confirm that the test reaches one. It still isn't repaired or checked.
|
|
20
|
+
- When a change to test code touches only unit tests, `kwikqa check` no longer says that no usable analysis names the failing tests. Its validation step says that none of them is an end-to-end browser test, so nothing was validated.
|
|
21
|
+
|
|
22
|
+
## 0.4.2 — 2026-11-12
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- KwikQA repairs a Java, Python, or Cucumber-JVM failure only when its failing tests are end-to-end browser tests, which reach Selenium, Selenide, Appium, Playwright, SeleniumBase, or Splinter through their own code. A unit test is diagnosed but not repaired, and `kwikqa check` doesn't judge a change to one.
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- `kwikqa check` no longer says a passing test ran three times in a row when a change to shared test support in a Maven, Gradle, pytest, or Cucumber-JVM suite ran it once. It says the test passed its run.
|
|
31
|
+
- The message that Maven or Gradle validation is unavailable on Windows no longer shows an internal reference.
|
|
32
|
+
- The draft pull request that a CI fix opens says how many times its repaired test passed: once for a shared Maven, Gradle, pytest, or Cucumber-JVM repair, instead of always three times in a row.
|
|
33
|
+
- Validation now finds the tests a shared change affects through `pytest_plugins` lists, pytest's `pythonpath`, and Gradle's `testFixtures` and `integrationTest` source sets, where it used to refuse.
|
|
34
|
+
|
|
35
|
+
## 0.4.1 — 2026-11-11
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
|
|
39
|
+
- Shared page-object and fixture repairs in Selenium Java and pytest suites are validated across the tests they affect, end to end. A suite kept in a subdirectory of the repository is validated from its own build root, and a pytest module that names fixtures in literal `usefixtures` marks has those fixtures followed.
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
|
|
43
|
+
- Diagnosis of a Selenium Java run also searches recent changes for the expected and received values of TestNG and JUnit assertions.
|
|
44
|
+
- A page object's own locators are kept in the evidence, and recent changes are searched for the text they select.
|
|
45
|
+
- When many tests fail through one shared page object, the request carries each source excerpt once and keeps the page object's methods and locators within its size limit.
|
|
46
|
+
|
|
47
|
+
### Fixed
|
|
48
|
+
|
|
49
|
+
- A repair to shared test support is no longer refused because a module that none of its affected tests reach has imports that KwikQA can't bound or parse, such as build tooling with dynamic imports.
|
|
50
|
+
- Java sources in a Maven or Gradle suite two levels below the workspace root are found, so their failures reach the evidence.
|
|
51
|
+
- Change evidence no longer dates commits against a run whose report doesn't record its start, such as a Maven Surefire report. The search takes the last commits instead.
|
|
52
|
+
|
|
53
|
+
## 0.4.0 — 2026-11-10
|
|
54
|
+
|
|
55
|
+
### Added
|
|
56
|
+
|
|
57
|
+
- `kwikqa check` checks test changes that KwikQA didn't write, such as an agent's edits or Playwright's healer's. It applies the same gates as KwikQA's own repairs: scope and policy, ownership from an earlier `analyze` of the failing run, and validation. It asks before running tests (`--yes` approves), exits 0 only when every gate passes, and sends nothing to KwikQA. In CI, it publishes its verdict where `kwikqa ci` publishes its summary.
|
|
58
|
+
- Selenium Java suites (Maven or Gradle, with TestNG or JUnit 5), pytest suites (with Selenium or Playwright), and Cucumber-JVM suites (Maven or Gradle) are diagnosed, repaired, and validated with the project's own Maven, Gradle, or pytest. The diagnosis reads their page objects, base classes, step definitions, and pytest fixtures. Maven and Gradle validation is unavailable on Windows. KwikQA never installs or downloads these tools.
|
|
59
|
+
- Bring-your-own-key endpoints: `KWIKQA_ENDPOINT` chooses where a BYOK plan's requests go: `openrouter` (the default), `anthropic`, `openai`, `azure-openai`, `bedrock`, or `github-models`. Credentials come from the environment, so a CI job sets them from its own secrets. For a direct endpoint, its model key (such as `ANTHROPIC_API_KEY`) is removed from the environment of the test runs KwikQA starts.
|
|
60
|
+
- More than one fix pull request per CI run: `ci.fix.maxPullRequestsPerRun` (1 to 5, default 1) repairs up to that many failure groups and opens a draft pull request for each one that validates. The plan sets the most: 5 on Enterprise, 1 on Pro and the team plans.
|
|
61
|
+
- Shard-aware deduplication on Enterprise plans: each job of a sharded run asks the service which of its failure groups another job of the same run already diagnoses, and skips those. Set `KWIKQA_SHARD` where a job's own ID isn't unique per shard.
|
|
62
|
+
|
|
63
|
+
### Changed
|
|
64
|
+
|
|
65
|
+
- Repairs to shared test support, such as a page object, fixture, helper, or config file, are validated over every test that uses them instead of being refused. Before the patch is applied, those tests run once on the current code, after you approve. Afterward, each must pass again: three times in a row in Playwright, Cypress, and WebdriverIO runs, and once in Maven, Gradle, and pytest runs.
|
|
66
|
+
- `fix` and `check` refuse `expect(...).toPass()` as a retry. An exact expected value may be replaced by a pattern, such as a regular expression or `expect.any`, only with cited evidence that the value varies.
|
|
67
|
+
- CI use follows the plan. On Hobby, `kwikqa ci` analyzes CI runs locally and says why. Pro and BYOK run hosted analysis in CI on one repository of your own. Organization CI, `ci.fix` beyond that repository, and Slack and Teams alerts need a team plan.
|
|
68
|
+
- Each request in CI that counts toward your plan also reports where the job runs: the CI system, the repository's host, owner, and name, its visibility when known, and the pull request author's login. The service keeps the repository and the author only as keyed hashes.
|
|
69
|
+
- The plans are Hobby (the free plan), Pro, BYOK, Teams, BYOK Teams, Enterprise, and BYOK Enterprise. Until the paid plans open, every account uses Hobby. Prices and limits are in the Plans section of the README.
|
|
70
|
+
|
|
71
|
+
## 0.3.1 — 2026-11-01
|
|
72
|
+
|
|
73
|
+
### Fixed
|
|
74
|
+
|
|
75
|
+
- A fix pull request's title names the kind of failure when its group has no symptom category, such as "a failure on a locator" or "a failed network request". It counts the failing tests when there are several.
|
|
76
|
+
|
|
77
|
+
## 0.3.0 — 2026-11-01
|
|
78
|
+
|
|
79
|
+
Release candidates 0.3.0-rc.1 and 0.3.0-rc.2 were published to npm's `next` tag first. The notes below cover all three.
|
|
80
|
+
|
|
81
|
+
### Added
|
|
82
|
+
|
|
83
|
+
- Fix pull requests in CI. With a committed `ci.fix` policy (`{"ci": {"fix": {"pullRequests": "draft"}}}` in `kwikqa.config.json`), `kwikqa fix` in GitHub Actions, Azure Pipelines, or GitLab CI/CD repairs a failure on the runner, validates the repair, and opens a draft pull request labeled `kwikqa`. On GitLab it is a draft merge request. A person reviews and merges it. GitHub needs "Allow GitHub Actions to create and approve pull requests" turned on. Jenkins still needs a terminal for `fix`.
|
|
84
|
+
- One fix per failure group. While the group's fix pull request is open, a later run of the same failure asks for no repair and updates one note on that pull request.
|
|
85
|
+
- For a fork's pull request, `fix` is refused before any request is sent, and the job summary says what a maintainer can run.
|
|
86
|
+
|
|
87
|
+
## 0.2.5 — 2026-10-31
|
|
88
|
+
|
|
89
|
+
### Added
|
|
90
|
+
|
|
91
|
+
- Jenkins: `kwikqa ci` prints its summary in the build's console log, with a link to the build, and comments on a GitHub or GitLab pull request through that host's token. A rebuild updates the comment. Bitbucket gets no comment yet.
|
|
92
|
+
|
|
93
|
+
### Fixed
|
|
94
|
+
|
|
95
|
+
- A refused GitLab note names the permissions a fine-grained `GITLAB_TOKEN` needs (Work Item read, create, and update on the project), as well as the `api` scope.
|
|
96
|
+
|
|
97
|
+
## 0.2.4 — 2026-10-31
|
|
98
|
+
|
|
99
|
+
### Added
|
|
100
|
+
|
|
101
|
+
- GitLab CI/CD: `kwikqa ci` prints its summary in the job log and posts one merge request note, which a re-run updates. It needs `KWIKQA_TOKEN` and a `GITLAB_TOKEN` of your own, stored as masked variables, because `CI_JOB_TOKEN` can't write notes. A branch pipeline gets a note only when its branch has exactly one open merge request.
|
|
102
|
+
|
|
103
|
+
### Changed
|
|
104
|
+
|
|
105
|
+
- When a CI run finds a repairable failure, the hint says to run `kwikqa analyze` and then `kwikqa fix` on your machine, because `fix` needs a terminal.
|
|
106
|
+
|
|
107
|
+
### Fixed
|
|
108
|
+
|
|
109
|
+
- On Azure Pipelines, a refused pull request comment names the identity that Azure DevOps refused, which is the identity to give the "Contribute to pull requests" permission.
|
|
110
|
+
|
|
111
|
+
## 0.2.3 — 2026-10-31
|
|
112
|
+
|
|
113
|
+
### Added
|
|
114
|
+
|
|
115
|
+
- Azure Pipelines: `kwikqa ci` publishes its summary as a build summary and, on an Azure Repos pull request, as one pull request thread that a re-run updates. The thread is created closed, so it never holds up a pull request under a comment-resolution policy. The build service needs "Contribute to pull requests" on the repository.
|
|
116
|
+
|
|
117
|
+
## 0.2.2 — 2026-10-27
|
|
118
|
+
|
|
119
|
+
### Fixed
|
|
120
|
+
|
|
121
|
+
- A Slack message is sent as one rich-text block, so each of its lines stays a line when it is copied.
|
|
122
|
+
|
|
123
|
+
## 0.2.1 — 2026-10-27
|
|
124
|
+
|
|
125
|
+
### Fixed
|
|
126
|
+
|
|
127
|
+
- A hosted analysis no longer fails when a status check's response is cut short. The check is retried.
|
|
128
|
+
- The branch line of a Slack or Teams message no longer repeats the repository, which the headline names.
|
|
129
|
+
|
|
130
|
+
## 0.2.0 — 2026-10-27
|
|
131
|
+
|
|
132
|
+
### Added
|
|
133
|
+
|
|
134
|
+
- Failure report: `kwikqa analyze --html` or `kwikqa report` writes `kwikqa-report.html`, a self-contained page with each failure group and its owner, the diagnosis and the evidence it cites, flaky tests, and every request sent. It is free on every plan and needs no sign-in.
|
|
135
|
+
- More test reports: `analyze` reads JUnit XML from any tool (Vitest, Jest, Mocha, pytest, Playwright's JUnit reporter, Maven Surefire and Failsafe, and Gradle), TestNG's XML, Allure results, CTRF reports, and Cucumber JSON. It diagnoses their failures. These runs are not repaired or validated, and `fix` says so before it sends anything.
|
|
136
|
+
- `kwikqa ci` analyzes a failed CI run and publishes a summary. On GitHub Actions the summary is the job summary plus one pull request comment, which a re-run updates. Without a KwikQA token it analyzes locally. On other CI systems it writes the report and posts to chat.
|
|
137
|
+
- `kwikqa ci` posts to Slack and Microsoft Teams through incoming webhook URLs stored as CI secrets. It posts only when tests fail, unless `--notify always` is given.
|
|
138
|
+
|
|
139
|
+
## 0.1.1 — 2026-10-23
|
|
140
|
+
|
|
141
|
+
### Added
|
|
142
|
+
|
|
143
|
+
- Tests in a monorepo package can be repaired and validated. Run `kwikqa` from the package folder that holds the tests. KwikQA finds that package's Playwright, Cypress, or WebdriverIO in its own `node_modules` or in one above it, up to the repository root. It never runs a copy from outside the repository.
|
|
144
|
+
|
|
145
|
+
### Changed
|
|
146
|
+
|
|
147
|
+
- The commands KwikQA suggests use the package manager that ran it: `npx`, `pnpm exec`, `yarn`, or `bunx`.
|
|
148
|
+
|
|
149
|
+
### Fixed
|
|
150
|
+
|
|
151
|
+
- A read from the KwikQA service that loses its connection is tried once more. Writes are never retried, and a failed request names its network cause.
|
|
152
|
+
|
|
153
|
+
## 0.1.0 — 2026-10-21
|
|
154
|
+
|
|
155
|
+
### Added
|
|
156
|
+
|
|
157
|
+
- `kwikqa analyze` diagnoses failed Playwright Test, Cypress, and WebdriverIO runs. Each cause cites the report fields, trace events, or source lines that support it, and KwikQA says so when the evidence isn't enough. Each group of failures gets its own diagnosis request.
|
|
158
|
+
- `kwikqa analyze --capture` re-runs the failing tests to record full evidence: Playwright traces, and for Cypress and WebdriverIO, each failed attempt's DOM, command log, console, and network. With Playwright 1.59 or later and Playwright CLI installed, it also probes locator failures.
|
|
159
|
+
- `kwikqa analyze --report` reads Playwright's JSON report, KwikQA's Cypress and WebdriverIO reporters, mochawesome, and JUnit reports.
|
|
160
|
+
- `kwikqa fix` proposes a repair to test code only: specs, page objects, fixtures, and helpers that `kwikqa.config.json` allows. It shows the diff and applies it only after you approve.
|
|
161
|
+
- `kwikqa validate` runs the repaired test three times in a row with retries off, and a failure rolls the patch back. KwikQA runs your project's own tools and never installs packages or browsers.
|
|
162
|
+
- Repairs refuse to weaken a test: no skipped or focused tests, fixed waits, retries, forced Cypress actions, or removed or swapped assertions.
|
|
163
|
+
- Recent code changes that mention the failure are sent with its evidence, so a deliberate change can be told apart from a broken app. `--no-changes` leaves them out.
|
|
164
|
+
- Hosted analysis through the KwikQA service. Sign in with `kwikqa login` (GitHub). Hosted requests go only to endpoints with a zero-data-retention policy. While the paid plans are coming soon, every account uses the free plan.
|
|
165
|
+
- Bring your own key: the BYOK plans, when they open, send requests straight to OpenRouter with your `OPENROUTER_API_KEY`, so the evidence never passes through KwikQA's servers.
|
|
166
|
+
- Team insights: on the team plans, when they open, the owner can turn on sharing of the names, files, and projects of failing and flaky tests, and of each fix's outcome. Evidence, source, diffs, and error messages are never shared.
|
|
167
|
+
- Account and setup commands: `init`, `login`, `logout`, `status`, `upgrade`, and `billing`. `analyze --yes` runs unattended in CI with a CI token in `KWIKQA_TOKEN`.
|
package/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# KwikQA
|
|
2
2
|
|
|
3
|
-
KwikQA reads a failed **Playwright**, **Cypress**,
|
|
4
|
-
failed, using the evidence in your report, the page at
|
|
3
|
+
KwikQA reads a failed **Playwright**, **Cypress**, **WebdriverIO**, **Selenium Java**, **pytest**, or
|
|
4
|
+
**Cucumber-JVM** run and tells you why it failed, using the evidence in your report, the page at
|
|
5
|
+
the moment of failure when it can record it, and your test source. It also diagnoses the reports
|
|
6
|
+
of [other frameworks](#reports-kwikqa-reads), such as Jest, Vitest, and JUnit.
|
|
5
7
|
When the test itself is at fault, it proposes a small repair to your test code, shows you the exact
|
|
6
8
|
diff, applies it only after you approve, and keeps it only if your tests then pass.
|
|
7
9
|
|
|
@@ -29,9 +31,10 @@ Using pnpm, Yarn, or Bun? See [Package managers and monorepos](#package-managers
|
|
|
29
31
|
- **Nothing happens without you.** You see each AI request and each patch before it happens. Applying a
|
|
30
32
|
patch always asks, even in CI mode.
|
|
31
33
|
- **Keeps a repair only if it validates.** `validate` reruns the failing test in a fresh process with
|
|
32
|
-
your project's own Playwright, Cypress,
|
|
33
|
-
other test skipped except the ones that passed
|
|
34
|
-
fails, the patch is rolled back. One retry is
|
|
34
|
+
your project's own Playwright, Cypress, WebdriverIO, Maven, Gradle, or pytest; Maven and Gradle run
|
|
35
|
+
offline. Cypress runs the test's spec with every other test skipped except the ones that passed
|
|
36
|
+
before, which must still pass. If anything required fails, the patch is rolled back. One retry is
|
|
37
|
+
allowed, then it stops.
|
|
35
38
|
- **Leaves your other work alone.** It won't touch files you have already modified, and rollback
|
|
36
39
|
restores only the bytes it changed.
|
|
37
40
|
|
|
@@ -102,14 +105,25 @@ failing specs and records each failure's page (see below).
|
|
|
102
105
|
|
|
103
106
|
### Supported frameworks
|
|
104
107
|
|
|
105
|
-
KwikQA repairs and validates
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
KwikQA repairs and validates end-to-end browser tests, and only those. A test is end-to-end when its
|
|
109
|
+
code reaches a browser-automation library: Selenium, Selenide, Appium, or Playwright for Java, and
|
|
110
|
+
Selenium, Playwright, Appium, SeleniumBase, or Splinter for Python. KwikQA follows the code a test uses:
|
|
111
|
+
its imports, the fully qualified names it writes, the fixtures and page objects it requests, the modules
|
|
112
|
+
a `pytest_plugins` list names, the modules a pytest `pythonpath` makes importable, and, for pytest, a
|
|
113
|
+
browser plugin's fixture when the project's own virtual environment installs that plugin. The plugins are pytest-playwright, pytest-selenium,
|
|
114
|
+
SeleniumBase, and pytest-splinter. Gradle's `testFixtures` and `integrationTest` source sets are read
|
|
115
|
+
with the main and test sources. These runs are diagnosed, repaired, and validated:
|
|
116
|
+
|
|
117
|
+
- Playwright Test, Cypress, and WebdriverIO (Mocha or Jasmine): they are browser runners, so the rule
|
|
118
|
+
above doesn't narrow them.
|
|
119
|
+
- Java, when the tests are end-to-end browser tests, with Maven or Gradle, and TestNG or JUnit 5.
|
|
120
|
+
- pytest, when the tests are end-to-end browser tests.
|
|
121
|
+
- Cucumber-JVM, with Maven or Gradle.
|
|
122
|
+
|
|
123
|
+
Everything else is report-only: KwikQA diagnoses it, and never repairs or validates it. That includes
|
|
124
|
+
unit tests in JUnit, TestNG, and pytest. KwikQA reads and diagnoses them, but a repair would change
|
|
125
|
+
what they accept, since their failures are mostly real regressions or changed expectations. When
|
|
126
|
+
KwikQA can't confirm that a test reaches a browser library, it treats the test as a unit test.
|
|
113
127
|
|
|
114
128
|
Maven and Gradle runs need a JDK already in `JAVA_HOME`, and a Maven or Gradle wrapper whose
|
|
115
129
|
distribution is already unpacked under `MAVEN_USER_HOME` (or `~/.m2`) or `GRADLE_USER_HOME` (or
|
|
@@ -142,8 +156,9 @@ Point `--report` at the file or its directory:
|
|
|
142
156
|
npx kwikqa analyze --report reports/junit.xml --html
|
|
143
157
|
```
|
|
144
158
|
|
|
145
|
-
You get failure groups, a diagnosis, and the [failure report](#failure-report).
|
|
146
|
-
|
|
159
|
+
You get failure groups, a diagnosis, and the [failure report](#failure-report). Only the runs named
|
|
160
|
+
under [supported frameworks](#supported-frameworks) are repaired and validated; for any other run,
|
|
161
|
+
`fix` says so before it sends anything. Java and Python runs can't be captured. For Playwright
|
|
147
162
|
repairs, use its JSON reporter as shown above.
|
|
148
163
|
|
|
149
164
|
Some details depend on the reporter:
|
|
@@ -202,14 +217,14 @@ doesn't. It never runs one from outside the repository, so pnpm's global virtual
|
|
|
202
217
|
| `npx kwikqa analyze --html` | Also write the [failure report](#failure-report), `kwikqa-report.html`; `--output <path>` writes it elsewhere. |
|
|
203
218
|
| `npx kwikqa report` | Write the failure report of the latest analysis without analyzing again or sending anything. `--run <id>` picks an earlier run under `.kwikqa/runs/`; `--output <path>` picks the file. |
|
|
204
219
|
| `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. |
|
|
205
|
-
| `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 three times in a row, 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). |
|
|
206
|
-
| `npx kwikqa validate` | Run the approved validation. The repaired test must pass three times in a row, with retries off. 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. |
|
|
220
|
+
| `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). |
|
|
221
|
+
| `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. |
|
|
207
222
|
| `npx kwikqa fix --retry` | After a failed validation, re-diagnose from the new evidence and propose one revised patch. |
|
|
208
|
-
| `npx kwikqa check` | Check test changes KwikQA didn't write, such as an agent's or Playwright's healer's, with the gates KwikQA's own repairs get. **Scope and policy:** only the test paths the committed `kwikqa.config.json` makes editable, with no skips, `fixme`, fixed waits, retries, forced actions, or removed, swapped, or loosened assertions. **Ownership:** the failing tests the change touches must be diagnosed as the test's fault, by an analysis of the code before the change, so run `analyze` before the agent edits the test. **Validation:** each touched failing test must pass three times in a row with retries off, and the static checks must pass; for a change to a shared page object, fixture, or helper, so must every test that uses it, compared with how it did in the analyzed run; it asks before running anything (`--yes` approves).
|
|
209
|
-
| `npx kwikqa status` | Show your plan
|
|
223
|
+
| `npx kwikqa check` | Check test changes KwikQA didn't write, such as an agent's or Playwright's healer's, with the gates KwikQA's own repairs get. **Scope and policy:** only the test paths the committed `kwikqa.config.json` makes editable, with no skips, `fixme`, fixed waits, retries, forced actions, or removed, swapped, or loosened assertions. **Ownership:** the failing tests the change touches must be diagnosed as the test's fault, by an analysis of the code before the change, so run `analyze` before the agent edits the test. **Validation:** each touched failing test must pass three times in a row with retries off (once, for a shared change in a Maven, Gradle, pytest, or Cucumber-JVM suite), and the static checks must pass; for a change to a shared page object, fixture, or helper, so must every test that uses it, compared with how it did in the analyzed run; it asks before running anything (`--yes` approves). Java and pytest changes get the same gates, validated with the project's own Maven, Gradle, or pytest; a Cucumber-JVM change is validated under Maven or Gradle. Each finding names its file and line. It exits 0 only when every gate passed. After a failed check of uncommitted changes, it offers to put the changed files back as `HEAD` has them, keeping a copy of the change in `.kwikqa/adopted/`; only a yes at the terminal restores anything. `--base <ref>` checks a branch's changes since it left `<ref>`; `--analysis <path>` names the failing run's record. It sends nothing to KwikQA; in CI it publishes its verdict, see [Checking an agent's pull request](#checking-an-agents-pull-request). |
|
|
224
|
+
| `npx kwikqa status` | Show your plan and this month's usage, and in a company account your role and the team this sign-in counts for. |
|
|
210
225
|
| `npx kwikqa upgrade [plan]` | Show plans, or get a checkout link for one. `--annual` bills yearly; `--seats <n>` sets seats on team plans. On a paid plan it points you to Billing in the dashboard. While the paid plans are coming soon, it lists them without a link. |
|
|
211
226
|
| `npx kwikqa billing` | Open Paddle's customer portal to update your payment method or download invoices. |
|
|
212
|
-
| `npx kwikqa init` / `login` / `logout` | Set up the project, sign in, sign out (`logout` also revokes the token). |
|
|
227
|
+
| `npx kwikqa init` / `login` / `logout` | Set up the project, sign in, sign out (`logout` also revokes the token). `login` opens kwikqa.com/device in your browser with the code filled in; `--no-browser` only prints the page and the code. |
|
|
213
228
|
|
|
214
229
|
Exit codes: `0` success or an informative result, `1` the repair or validation did not succeed, `2`
|
|
215
230
|
usage error, `3` sign-in, plan, or usage-limit problem.
|
|
@@ -268,13 +283,17 @@ Paddle, the merchant of record.
|
|
|
268
283
|
|
|
269
284
|
### Teams
|
|
270
285
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
monthly
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
and
|
|
277
|
-
|
|
286
|
+
The team plans belong to a company account. Its admins invite people by work email, and people sign
|
|
287
|
+
in with a code sent to that address, or through the company's single sign-on on Enterprise. Teams
|
|
288
|
+
inside the company have managers and optional monthly caps, and everyone, CI tokens included, draws
|
|
289
|
+
from one monthly pool. When you approve `npx kwikqa login` at kwikqa.com/device, it asks which team
|
|
290
|
+
the sign-in counts for if you're in more than one, and `npx kwikqa status` shows your company, role,
|
|
291
|
+
and team. See
|
|
292
|
+
https://kwikqa.com/docs/account/#company.
|
|
293
|
+
|
|
294
|
+
An admin can also turn on **insights**: the flakiest tests, fix history, acceptance rate, and repair
|
|
295
|
+
success at https://kwikqa.com/dashboard/insights/. While insights are on, the CLI shares the names,
|
|
296
|
+
files, and projects of failing and flaky tests and each fix's outcome with the organization, and
|
|
278
297
|
says so after each command. It never shares evidence, source, diffs, or error messages, and
|
|
279
298
|
`analyze --local` shares nothing. `npx kwikqa status` shows whether insights are on.
|
|
280
299
|
|
|
@@ -450,8 +469,9 @@ organization's Actions settings.
|
|
|
450
469
|
|
|
451
470
|
- **What it does.** It re-runs the failing tests once to confirm the failure, asks for one repair,
|
|
452
471
|
and applies it to the runner's checkout. The repaired test must pass three times in a row, with
|
|
453
|
-
retries off
|
|
454
|
-
counts as one fix, and it
|
|
472
|
+
retries off (once, for a shared Maven, Gradle, pytest, or Cucumber-JVM repair). A failure is
|
|
473
|
+
rolled back, and retried once only with `"retry": true`. One CI fix counts as one fix, and it
|
|
474
|
+
reuses the diagnosis `kwikqa ci` made.
|
|
455
475
|
- **How many.** `maxPullRequestsPerRun` is 1 to 5, and left out it is 1. With more than one, a run
|
|
456
476
|
repairs up to that many failure groups, one fix each, and opens a draft pull request for each one
|
|
457
477
|
that validates. Your plan sets the most: the run uses the smaller of the two, and says so when your
|
|
@@ -720,4 +740,8 @@ KwikQA is proprietary software licensed under the end user license agreement in
|
|
|
720
740
|
licenses, are listed in `dist/THIRD_PARTY_NOTICES.md` in the package. The hosted service is also
|
|
721
741
|
covered by the [terms of service](https://kwikqa.com/terms/), the
|
|
722
742
|
[privacy policy](https://kwikqa.com/privacy/), and the [refund policy](https://kwikqa.com/refunds/).
|
|
743
|
+
|
|
744
|
+
What changed in each release is in `CHANGELOG.md` in the package and at
|
|
745
|
+
[kwikqa.com/changelog](https://kwikqa.com/changelog/).
|
|
746
|
+
|
|
723
747
|
Questions and support: https://kwikqa.com/support
|