executable-stories-formatters 0.10.0 → 0.11.1
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 +35 -0
- package/dist/adapters.d.cts +1 -1
- package/dist/adapters.d.ts +1 -1
- package/dist/cli.js +1667 -149
- package/dist/cli.js.map +1 -1
- package/dist/{index-CbWFyoTx.d.cts → index-DF16Xl5i.d.cts} +7 -0
- package/dist/{index-CbWFyoTx.d.ts → index-DF16Xl5i.d.ts} +7 -0
- package/dist/index.cjs +372 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +129 -7
- package/dist/index.d.ts +129 -7
- package/dist/index.js +363 -42
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/schemas/raw-run.schema.json +19 -0
- package/schemas/story-report-v1.json +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "executable-stories-formatters",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
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",
|
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@cucumber/html-formatter": "^23.1.0",
|
|
58
58
|
"@cucumber/messages": "^32.3.1",
|
|
59
|
-
"ajv": "^8.20.0"
|
|
59
|
+
"ajv": "^8.20.0",
|
|
60
|
+
"yaml": "^2.8.3"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"@faker-js/faker": "^10.4.0",
|
|
@@ -198,6 +198,11 @@
|
|
|
198
198
|
"type": "integer",
|
|
199
199
|
"minimum": 0,
|
|
200
200
|
"description": "Order in which the story was defined in source (for stable sorting)."
|
|
201
|
+
},
|
|
202
|
+
"otelSpans": {
|
|
203
|
+
"type": "array",
|
|
204
|
+
"items": { "type": "object" },
|
|
205
|
+
"description": "OpenTelemetry spans captured for this scenario (from autotel), used to render a trace waterfall."
|
|
201
206
|
}
|
|
202
207
|
},
|
|
203
208
|
"required": ["scenario"],
|
|
@@ -386,6 +391,20 @@
|
|
|
386
391
|
"required": ["kind", "path", "phase"],
|
|
387
392
|
"additionalProperties": false
|
|
388
393
|
},
|
|
394
|
+
{
|
|
395
|
+
"type": "object",
|
|
396
|
+
"description": "Video reference with optional caption and poster image.",
|
|
397
|
+
"properties": {
|
|
398
|
+
"kind": { "const": "video" },
|
|
399
|
+
"path": { "type": "string" },
|
|
400
|
+
"caption": { "type": "string" },
|
|
401
|
+
"poster": { "type": "string" },
|
|
402
|
+
"phase": { "$ref": "#/$defs/DocPhase" },
|
|
403
|
+
"children": { "type": "array", "items": { "$ref": "#/$defs/DocEntry" }, "description": "Nested child doc entries for grouping." }
|
|
404
|
+
},
|
|
405
|
+
"required": ["kind", "path", "phase"],
|
|
406
|
+
"additionalProperties": false
|
|
407
|
+
},
|
|
389
408
|
{
|
|
390
409
|
"type": "object",
|
|
391
410
|
"description": "Custom documentation entry with arbitrary data.",
|
|
@@ -252,6 +252,7 @@
|
|
|
252
252
|
{ "$ref": "#/$defs/DocSection" },
|
|
253
253
|
{ "$ref": "#/$defs/DocMermaid" },
|
|
254
254
|
{ "$ref": "#/$defs/DocScreenshot" },
|
|
255
|
+
{ "$ref": "#/$defs/DocVideo" },
|
|
255
256
|
{ "$ref": "#/$defs/DocCustom" }
|
|
256
257
|
]
|
|
257
258
|
},
|
|
@@ -396,6 +397,22 @@
|
|
|
396
397
|
"required": ["kind", "path", "phase"],
|
|
397
398
|
"additionalProperties": false
|
|
398
399
|
},
|
|
400
|
+
"DocVideo": {
|
|
401
|
+
"type": "object",
|
|
402
|
+
"properties": {
|
|
403
|
+
"kind": { "const": "video" },
|
|
404
|
+
"path": { "type": "string" },
|
|
405
|
+
"caption": { "type": "string" },
|
|
406
|
+
"poster": { "type": "string" },
|
|
407
|
+
"phase": { "$ref": "#/$defs/DocPhase" },
|
|
408
|
+
"children": {
|
|
409
|
+
"type": "array",
|
|
410
|
+
"items": { "$ref": "#/$defs/DocEntry" }
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
"required": ["kind", "path", "phase"],
|
|
414
|
+
"additionalProperties": false
|
|
415
|
+
},
|
|
399
416
|
"DocCustom": {
|
|
400
417
|
"type": "object",
|
|
401
418
|
"properties": {
|