executable-stories-formatters 0.4.0 → 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/README.md +38 -1
- package/dist/adapters.d.cts +1 -1
- package/dist/adapters.d.ts +1 -1
- package/dist/cli.js +810 -6
- package/dist/cli.js.map +1 -1
- package/dist/{index-DyeUWfYK.d.cts → index-C4QO-SVT.d.cts} +33 -8
- package/dist/{index-DyeUWfYK.d.ts → index-C4QO-SVT.d.ts} +33 -8
- package/dist/index.cjs +900 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +403 -5
- package/dist/index.d.ts +403 -5
- package/dist/index.js +881 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/README.md +11 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "executable-stories-formatters",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Cucumber-compatible report formats (HTML, Markdown, JUnit XML, Cucumber JSON) for executable-stories test results.",
|
|
5
5
|
"author": "Jag Reehal <jag@jagreehal.com>",
|
|
6
6
|
"license": "MIT",
|
package/schemas/README.md
CHANGED
|
@@ -169,8 +169,8 @@ SUBCOMMANDS
|
|
|
169
169
|
|
|
170
170
|
| Flag | Default | Description |
|
|
171
171
|
| ---------------------------- | -------------- | ------------------------------------------------------------- |
|
|
172
|
-
| `--format <formats>` | `html` | Comma-separated: `html`, `markdown`, `junit`, `cucumber-json` |
|
|
173
|
-
| `--input-type <type>` | `raw` | Input type: `raw` or `
|
|
172
|
+
| `--format <formats>` | `html` | Comma-separated: `html`, `markdown`, `junit`, `cucumber-json`, `cucumber-html`, `cucumber-messages` |
|
|
173
|
+
| `--input-type <type>` | `raw` | Input type: `raw`, `canonical`, or `ndjson` |
|
|
174
174
|
| `--output-dir <dir>` | `reports` | Output directory |
|
|
175
175
|
| `--output-name <name>` | `test-results` | Base filename |
|
|
176
176
|
| `--synthesize-stories` | on | Synthesize story metadata for plain test results |
|
|
@@ -182,6 +182,9 @@ SUBCOMMANDS
|
|
|
182
182
|
| `--stdin` | | Read JSON from stdin instead of file |
|
|
183
183
|
| `--json-summary` | off | Print machine-parsable JSON summary |
|
|
184
184
|
| `--emit-canonical <path>` | | Write canonical JSON to given path |
|
|
185
|
+
| **CI** | | Auto-detected from env (GitHub Actions, GitLab, CircleCI, Azure, Buildkite, Jenkins, Travis). No flag; report shows branch, commit, build URL when in CI. |
|
|
186
|
+
| **Notifications** | | `--slack-webhook`, `--teams-webhook`, or `--webhook-url` (repeatable); `--notify always\|on-failure\|never` (default `on-failure`); `--report-url`; `--max-failed-tests <n>`. Optional HMAC: `--webhook-hmac-secret`, `--webhook-hmac-header`, `--webhook-hmac-timestamp`. |
|
|
187
|
+
| **History** | | `--history-file <path>` — persist run history for flakiness, stability grade, performance trend in HTML. `--max-history-runs <n>` (default 10). |
|
|
185
188
|
| `--help` | | Show help message |
|
|
186
189
|
|
|
187
190
|
### Exit Codes
|
|
@@ -211,6 +214,12 @@ executable-stories format run.json --format html --html-title "Sprint 42 Results
|
|
|
211
214
|
|
|
212
215
|
# Export canonical JSON for debugging
|
|
213
216
|
executable-stories format run.json --emit-canonical canonical.json
|
|
217
|
+
|
|
218
|
+
# With run history (flakiness, stability, performance in HTML)
|
|
219
|
+
executable-stories format run.json --format html --history-file .history/runs.json
|
|
220
|
+
|
|
221
|
+
# Notify on failure (Slack/Teams via env or --slack-webhook / --teams-webhook)
|
|
222
|
+
executable-stories format run.json --format html --notify on-failure --report-url "https://ci.example.com/artifacts/report.html"
|
|
214
223
|
```
|
|
215
224
|
|
|
216
225
|
---
|