ccqa 1.51.0 → 1.52.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/README.md +11 -4
- package/dist/bin/ccqa.mjs +22449 -13372
- package/dist/evidence-constants-BufWx8Bt.cjs +59 -0
- package/dist/hub-client/index.cjs +434 -0
- package/dist/hub-client/index.d.cts +1376 -0
- package/dist/hub-client/index.d.mts +28 -4
- package/dist/package.json +49 -9
- package/dist/runtime/judge.cjs +1307 -0
- package/dist/runtime/judge.d.cts +68 -0
- package/dist/runtime/judge.d.mts +24 -2
- package/dist/runtime/judge.mjs +1229 -3
- package/dist/runtime/step-evidence.cjs +106 -0
- package/dist/runtime/step-evidence.d.cts +53 -0
- package/dist/runtime/step-evidence.mjs +1 -1
- package/dist/runtime/test-helpers.cjs +461 -0
- package/dist/runtime/test-helpers.d.cts +39 -0
- package/dist/runtime/test-helpers.mjs +134 -3
- package/package.json +49 -9
- package/dist/diagnose-CZms9Cer.mjs +0 -2432
- package/dist/spawn-ab-CR_Sr7wh.mjs +0 -199
- /package/dist/{evidence-constants-Cm_S_5od.mjs → evidence-constants-C425F7ZG.mjs} +0 -0
package/README.md
CHANGED
|
@@ -75,8 +75,11 @@ what it compiles into:
|
|
|
75
75
|
each step's `expected` — for UIs a fixed recording would break on.
|
|
76
76
|
|
|
77
77
|
vitest and agent-browser are peer dependencies of the default target; a
|
|
78
|
-
project on an external target alone needs just `ccqa` and that tool.
|
|
79
|
-
|
|
78
|
+
project on an external target alone needs just `ccqa` and that tool. A
|
|
79
|
+
target can also be defined entirely in config, with no code of its own, to
|
|
80
|
+
match a framework your repo already uses — and read its cases from
|
|
81
|
+
markdown you already write instead of `spec.yaml`. `runCommand`, reusing
|
|
82
|
+
your existing page objects, and `kind: external`:
|
|
80
83
|
[Generation targets](./docs/targets.md).
|
|
81
84
|
|
|
82
85
|
## Audit, then run
|
|
@@ -107,12 +110,16 @@ So ccqa asks the cheap question before the expensive one:
|
|
|
107
110
|
unverified until then
|
|
108
111
|
```
|
|
109
112
|
|
|
110
|
-
`ccqa audit` reads each
|
|
113
|
+
`ccqa audit` reads each test case against the source — cents per case, no
|
|
111
114
|
browser — and records every verdict on the **hub**, the small server
|
|
112
115
|
that holds what the team and CI share. Stale generated code is
|
|
113
|
-
re-recorded; a stale
|
|
116
|
+
re-recorded; a stale case goes to a human and stays **unverified** —
|
|
114
117
|
neither passing nor failing — until repaired.
|
|
115
118
|
|
|
119
|
+
When the application lives in a different checkout from the tests, name it
|
|
120
|
+
with `sourceRoots` in `.ccqa/config.yaml` and the audit reads it there. See
|
|
121
|
+
[Drift detection](./docs/running.md#drift-detection).
|
|
122
|
+
|
|
116
123
|
`ccqa run --only-hub-rerun-needed` asks the hub which specs are worth
|
|
117
124
|
running: cleared by the audit *and* invalidated by a deploy. A drifted spec —
|
|
118
125
|
or one whose last run failed — answers `needsRepair` and is never run. A run
|