executable-stories-formatters 0.11.4 → 0.13.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 +20 -0
- package/dist/adapters.d.cts +1 -1
- package/dist/adapters.d.ts +1 -1
- package/dist/cli.js +812 -13
- package/dist/cli.js.map +1 -1
- package/dist/{index-DF16Xl5i.d.cts → index-CXrzCk9p.d.cts} +10 -1
- package/dist/{index-DF16Xl5i.d.ts → index-CXrzCk9p.d.ts} +10 -1
- package/dist/index.cjs +671 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +280 -6
- package/dist/index.d.ts +280 -6
- package/dist/index.js +662 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/raw-run.schema.json +30 -0
- package/schemas/story-report-v1.json +24 -0
package/README.md
CHANGED
|
@@ -59,6 +59,9 @@ executable-stories format run.json --format html --format markdown
|
|
|
59
59
|
# Validate a run file against the schema
|
|
60
60
|
executable-stories validate run.json
|
|
61
61
|
|
|
62
|
+
# Backpressure summary for coding agents: compress passing, expand failing
|
|
63
|
+
executable-stories check .executable-stories/raw-run.json
|
|
64
|
+
|
|
62
65
|
# Include only test cases from matching source files (glob patterns)
|
|
63
66
|
executable-stories format raw-run.json --include "**/*.Story*.cs" --format html
|
|
64
67
|
|
|
@@ -81,6 +84,23 @@ executable-stories compare baseline.json current.json --format html --max-regres
|
|
|
81
84
|
executable-stories compare baseline.json current.json --format markdown --fail-on-added-failures
|
|
82
85
|
```
|
|
83
86
|
|
|
87
|
+
### Agent backpressure (`check`)
|
|
88
|
+
|
|
89
|
+
`check` is the inner-loop feedback view for coding agents — run it after your tests. Passing scenarios collapse to a single count line; each failing scenario expands to its Given/When/Then steps, the step that broke, the error, and the product code it `covers`:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
# Exits 5 when any scenario failed (so an agent loop reacts); --no-fail to report only
|
|
93
|
+
executable-stories check .executable-stories/raw-run.json
|
|
94
|
+
|
|
95
|
+
# Add "N regressed / N fixed" since a prior run
|
|
96
|
+
executable-stories check current.json --baseline previous.json # or --baseline auto
|
|
97
|
+
|
|
98
|
+
# Structured output for agents
|
|
99
|
+
executable-stories check raw-run.json --check-format json
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Add the command to your `CLAUDE.md` / `AGENTS.md` so the agent runs it after every change and fixes what it reports before asking for review.
|
|
103
|
+
|
|
84
104
|
### Compare gating
|
|
85
105
|
|
|
86
106
|
Use compare mode to produce diff reports between two runs and optionally enforce CI gates:
|
package/dist/adapters.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { J as JestAdapterOptions,
|
|
1
|
+
export { J as JestAdapterOptions, o as JestAggregatedResult, p as JestFileResult, q as JestTestResult, P as PlaywrightAdapterOptions, s as PlaywrightAnnotation, t as PlaywrightAttachment, u as PlaywrightError, v as PlaywrightLocation, w as PlaywrightStatus, x as PlaywrightTestCase, y as PlaywrightTestResult, G as StoryFileReport, V as VitestAdapterOptions, L as VitestSerializedError, M as VitestState, Q as VitestTestCase, U as VitestTestModule, W as VitestTestResult, j as adaptJestRun, k as adaptPlaywrightRun, l as adaptVitestRun } from './index-CXrzCk9p.cjs';
|
package/dist/adapters.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { J as JestAdapterOptions,
|
|
1
|
+
export { J as JestAdapterOptions, o as JestAggregatedResult, p as JestFileResult, q as JestTestResult, P as PlaywrightAdapterOptions, s as PlaywrightAnnotation, t as PlaywrightAttachment, u as PlaywrightError, v as PlaywrightLocation, w as PlaywrightStatus, x as PlaywrightTestCase, y as PlaywrightTestResult, G as StoryFileReport, V as VitestAdapterOptions, L as VitestSerializedError, M as VitestState, Q as VitestTestCase, U as VitestTestModule, W as VitestTestResult, j as adaptJestRun, k as adaptPlaywrightRun, l as adaptVitestRun } from './index-CXrzCk9p.js';
|