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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "executable-stories-formatters",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.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",
|
|
@@ -180,6 +180,11 @@
|
|
|
180
180
|
},
|
|
181
181
|
"description": "Ticket/issue references. Each item is either a string ID or an object with id and optional url."
|
|
182
182
|
},
|
|
183
|
+
"covers": {
|
|
184
|
+
"type": "array",
|
|
185
|
+
"items": { "type": "string" },
|
|
186
|
+
"description": "Product-code paths/globs this scenario exercises (project-root-relative). Used to map code changes to at-risk scenarios."
|
|
187
|
+
},
|
|
183
188
|
"meta": {
|
|
184
189
|
"type": "object",
|
|
185
190
|
"description": "User-defined metadata for this story."
|
|
@@ -405,6 +410,27 @@
|
|
|
405
410
|
"required": ["kind", "path", "phase"],
|
|
406
411
|
"additionalProperties": false
|
|
407
412
|
},
|
|
413
|
+
{
|
|
414
|
+
"type": "object",
|
|
415
|
+
"description": "Embedded HTML rendered in a sandboxed iframe. Exactly one of path/url/content.",
|
|
416
|
+
"properties": {
|
|
417
|
+
"kind": { "const": "html" },
|
|
418
|
+
"path": { "type": "string", "description": "Local HTML file path (inlined into the report by default)." },
|
|
419
|
+
"url": { "type": "string", "description": "Remote URL rendered via iframe src." },
|
|
420
|
+
"content": { "type": "string", "description": "Inline HTML content rendered via iframe srcdoc." },
|
|
421
|
+
"title": { "type": "string" },
|
|
422
|
+
"height": { "oneOf": [{ "type": "number" }, { "type": "string" }], "description": "Iframe height: number → px, string passed through (e.g. '60vh'). Default 400px." },
|
|
423
|
+
"phase": { "$ref": "#/$defs/DocPhase" },
|
|
424
|
+
"children": { "type": "array", "items": { "$ref": "#/$defs/DocEntry" }, "description": "Nested child doc entries for grouping." }
|
|
425
|
+
},
|
|
426
|
+
"required": ["kind", "phase"],
|
|
427
|
+
"oneOf": [
|
|
428
|
+
{ "required": ["path"] },
|
|
429
|
+
{ "required": ["url"] },
|
|
430
|
+
{ "required": ["content"] }
|
|
431
|
+
],
|
|
432
|
+
"additionalProperties": false
|
|
433
|
+
},
|
|
408
434
|
{
|
|
409
435
|
"type": "object",
|
|
410
436
|
"description": "Custom documentation entry with arbitrary data.",
|
|
@@ -480,6 +506,10 @@
|
|
|
480
506
|
"minimum": 0,
|
|
481
507
|
"description": "Step index (0-based)."
|
|
482
508
|
},
|
|
509
|
+
"stepId": {
|
|
510
|
+
"type": "string",
|
|
511
|
+
"description": "Stable step ID when the framework provides one (correlates with StoryStep.id)."
|
|
512
|
+
},
|
|
483
513
|
"title": {
|
|
484
514
|
"type": "string",
|
|
485
515
|
"description": "Step title/description."
|
|
@@ -253,6 +253,7 @@
|
|
|
253
253
|
{ "$ref": "#/$defs/DocMermaid" },
|
|
254
254
|
{ "$ref": "#/$defs/DocScreenshot" },
|
|
255
255
|
{ "$ref": "#/$defs/DocVideo" },
|
|
256
|
+
{ "$ref": "#/$defs/DocHtml" },
|
|
256
257
|
{ "$ref": "#/$defs/DocCustom" }
|
|
257
258
|
]
|
|
258
259
|
},
|
|
@@ -413,6 +414,29 @@
|
|
|
413
414
|
"required": ["kind", "path", "phase"],
|
|
414
415
|
"additionalProperties": false
|
|
415
416
|
},
|
|
417
|
+
"DocHtml": {
|
|
418
|
+
"type": "object",
|
|
419
|
+
"properties": {
|
|
420
|
+
"kind": { "const": "html" },
|
|
421
|
+
"path": { "type": "string" },
|
|
422
|
+
"url": { "type": "string" },
|
|
423
|
+
"content": { "type": "string" },
|
|
424
|
+
"title": { "type": "string" },
|
|
425
|
+
"height": { "oneOf": [{ "type": "number" }, { "type": "string" }] },
|
|
426
|
+
"phase": { "$ref": "#/$defs/DocPhase" },
|
|
427
|
+
"children": {
|
|
428
|
+
"type": "array",
|
|
429
|
+
"items": { "$ref": "#/$defs/DocEntry" }
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"required": ["kind", "phase"],
|
|
433
|
+
"oneOf": [
|
|
434
|
+
{ "required": ["path"] },
|
|
435
|
+
{ "required": ["url"] },
|
|
436
|
+
{ "required": ["content"] }
|
|
437
|
+
],
|
|
438
|
+
"additionalProperties": false
|
|
439
|
+
},
|
|
416
440
|
"DocCustom": {
|
|
417
441
|
"type": "object",
|
|
418
442
|
"properties": {
|