executable-stories-formatters 1.15.0 → 1.17.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 +36 -0
- package/dist/cli.js +850 -317
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +179 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -1
- package/dist/index.d.ts +30 -1
- package/dist/index.js +184 -43
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/schemas/README.md +1 -0
- package/schemas/examples/dotnet.json +5 -1
- package/schemas/examples/junit5.json +4 -0
- package/schemas/examples/pytest.json +4 -0
- package/schemas/examples/rust.json +2 -0
package/dist/index.d.cts
CHANGED
|
@@ -199,7 +199,7 @@ declare class ConfluenceFormatter {
|
|
|
199
199
|
*/
|
|
200
200
|
|
|
201
201
|
/** Output format for report generation */
|
|
202
|
-
type OutputFormat = "agent-text" | "astro-markdown" | "behavior-manifest-json" | "confluence" | "cucumber-json" | "cucumber-messages" | "cucumber-html" | "html" | "junit" | "markdown" | "release-manifest" | "scenario-index-json" | "story-report-json" | "traceability-matrix" | "traceability-csv";
|
|
202
|
+
type OutputFormat = "agent-text" | "astro-markdown" | "behavior-manifest-json" | "confluence" | "cucumber-json" | "cucumber-messages" | "cucumber-html" | "html" | "junit" | "markdown" | "release-manifest" | "scenario-index-json" | "span-graph" | "story-report-json" | "traceability-matrix" | "traceability-csv";
|
|
203
203
|
/**
|
|
204
204
|
* Format names accepted as INPUT. Adds `"astro"` as a deprecated alias for
|
|
205
205
|
* `"astro-markdown"` — it is normalised (with a warning) wherever formats enter
|
|
@@ -308,6 +308,10 @@ interface FormatterOptions {
|
|
|
308
308
|
mermaidEnabled?: boolean;
|
|
309
309
|
/** Days before the report shows a stale warning. 0 disables. Default: 7 */
|
|
310
310
|
staleAfterDays?: number;
|
|
311
|
+
/** Show the Share button in the interactive report header. Default: false. */
|
|
312
|
+
share?: boolean;
|
|
313
|
+
/** Command the share dialog shows. Default: `npx executable-stories share <output-dir>`. */
|
|
314
|
+
shareCommand?: string;
|
|
311
315
|
};
|
|
312
316
|
/**
|
|
313
317
|
* Run history store (see loadHistory/updateHistory). When set, the HTML
|
|
@@ -341,6 +345,8 @@ interface FormatterOptions {
|
|
|
341
345
|
markdown?: MarkdownFormatterOptions;
|
|
342
346
|
/** Astro/Starlight specific options */
|
|
343
347
|
astro?: AstroFormatterOptions$1;
|
|
348
|
+
/** Span-graph specific options */
|
|
349
|
+
spanGraph?: SpanGraphFormatterOptions;
|
|
344
350
|
/** Confluence/ADF specific options */
|
|
345
351
|
confluence?: ConfluenceFormatterOptions;
|
|
346
352
|
/** History tracking options */
|
|
@@ -375,6 +381,15 @@ interface FormatterOptions {
|
|
|
375
381
|
writeFile?: WriteFile;
|
|
376
382
|
}
|
|
377
383
|
/** Markdown formatter options (extended for feature parity) */
|
|
384
|
+
interface SpanGraphFormatterOptions {
|
|
385
|
+
/** Heading for the page. Default: "Architecture, as it ran" */
|
|
386
|
+
title?: string;
|
|
387
|
+
/** Scenario ids from a behavioural diff, which colour the changed components. */
|
|
388
|
+
delta?: {
|
|
389
|
+
added: string[];
|
|
390
|
+
changed: string[];
|
|
391
|
+
};
|
|
392
|
+
}
|
|
378
393
|
interface MarkdownFormatterOptions {
|
|
379
394
|
/** Report title. Default: "User Stories" */
|
|
380
395
|
title?: string;
|
|
@@ -408,6 +423,8 @@ interface MarkdownFormatterOptions {
|
|
|
408
423
|
includeSourceLinks?: boolean;
|
|
409
424
|
/** Custom renderers for doc entries */
|
|
410
425
|
customRenderers?: MarkdownRenderers;
|
|
426
|
+
/** Keep local screenshot/video paths, for markdown posted with `gh ... --attach`. Default: false */
|
|
427
|
+
attachImages?: boolean;
|
|
411
428
|
/** Emit a stable per-scenario anchor for deep-linking. Returns the id, or undefined to skip. */
|
|
412
429
|
scenarioAnchor?: (tc: TestCaseResult) => string | undefined;
|
|
413
430
|
/** Render a badge line under a scenario heading (e.g. a what's-changed marker). Undefined to skip. */
|
|
@@ -479,6 +496,8 @@ interface ResolvedFormatterOptions {
|
|
|
479
496
|
syntaxHighlighting: boolean;
|
|
480
497
|
mermaidEnabled: boolean;
|
|
481
498
|
staleAfterDays: number;
|
|
499
|
+
share: boolean;
|
|
500
|
+
shareCommand: string | undefined;
|
|
482
501
|
};
|
|
483
502
|
historyStore: HistoryStore | undefined;
|
|
484
503
|
junit: {
|
|
@@ -502,7 +521,9 @@ interface ResolvedFormatterOptions {
|
|
|
502
521
|
traceUrlTemplate?: string;
|
|
503
522
|
includeSourceLinks: boolean;
|
|
504
523
|
customRenderers?: MarkdownRenderers;
|
|
524
|
+
attachImages: boolean;
|
|
505
525
|
};
|
|
526
|
+
spanGraph: SpanGraphFormatterOptions;
|
|
506
527
|
confluence: {
|
|
507
528
|
title: string;
|
|
508
529
|
includeStatusIcons: boolean;
|
|
@@ -2040,6 +2061,14 @@ interface MarkdownOptions {
|
|
|
2040
2061
|
includeSourceLinks?: boolean;
|
|
2041
2062
|
/** Custom renderers for doc entries */
|
|
2042
2063
|
customRenderers?: MarkdownRenderers;
|
|
2064
|
+
/**
|
|
2065
|
+
* Write a local screenshot/video path as an ordinary markdown reference
|
|
2066
|
+
* instead of the "unavailable" line. Only for markdown handed to
|
|
2067
|
+
* `gh pr comment|create|edit --attach <path>` (GitHub CLI 2.99+), which
|
|
2068
|
+
* uploads the file and rewrites the reference. Anywhere else the reference
|
|
2069
|
+
* is dead, which is why this is off by default. Default: false
|
|
2070
|
+
*/
|
|
2071
|
+
attachImages?: boolean;
|
|
2043
2072
|
/**
|
|
2044
2073
|
* Emit a stable in-page anchor before each scenario heading, so external tools
|
|
2045
2074
|
* can deep-link to a scenario by fragment. Given a test case, return the anchor
|
package/dist/index.d.ts
CHANGED
|
@@ -199,7 +199,7 @@ declare class ConfluenceFormatter {
|
|
|
199
199
|
*/
|
|
200
200
|
|
|
201
201
|
/** Output format for report generation */
|
|
202
|
-
type OutputFormat = "agent-text" | "astro-markdown" | "behavior-manifest-json" | "confluence" | "cucumber-json" | "cucumber-messages" | "cucumber-html" | "html" | "junit" | "markdown" | "release-manifest" | "scenario-index-json" | "story-report-json" | "traceability-matrix" | "traceability-csv";
|
|
202
|
+
type OutputFormat = "agent-text" | "astro-markdown" | "behavior-manifest-json" | "confluence" | "cucumber-json" | "cucumber-messages" | "cucumber-html" | "html" | "junit" | "markdown" | "release-manifest" | "scenario-index-json" | "span-graph" | "story-report-json" | "traceability-matrix" | "traceability-csv";
|
|
203
203
|
/**
|
|
204
204
|
* Format names accepted as INPUT. Adds `"astro"` as a deprecated alias for
|
|
205
205
|
* `"astro-markdown"` — it is normalised (with a warning) wherever formats enter
|
|
@@ -308,6 +308,10 @@ interface FormatterOptions {
|
|
|
308
308
|
mermaidEnabled?: boolean;
|
|
309
309
|
/** Days before the report shows a stale warning. 0 disables. Default: 7 */
|
|
310
310
|
staleAfterDays?: number;
|
|
311
|
+
/** Show the Share button in the interactive report header. Default: false. */
|
|
312
|
+
share?: boolean;
|
|
313
|
+
/** Command the share dialog shows. Default: `npx executable-stories share <output-dir>`. */
|
|
314
|
+
shareCommand?: string;
|
|
311
315
|
};
|
|
312
316
|
/**
|
|
313
317
|
* Run history store (see loadHistory/updateHistory). When set, the HTML
|
|
@@ -341,6 +345,8 @@ interface FormatterOptions {
|
|
|
341
345
|
markdown?: MarkdownFormatterOptions;
|
|
342
346
|
/** Astro/Starlight specific options */
|
|
343
347
|
astro?: AstroFormatterOptions$1;
|
|
348
|
+
/** Span-graph specific options */
|
|
349
|
+
spanGraph?: SpanGraphFormatterOptions;
|
|
344
350
|
/** Confluence/ADF specific options */
|
|
345
351
|
confluence?: ConfluenceFormatterOptions;
|
|
346
352
|
/** History tracking options */
|
|
@@ -375,6 +381,15 @@ interface FormatterOptions {
|
|
|
375
381
|
writeFile?: WriteFile;
|
|
376
382
|
}
|
|
377
383
|
/** Markdown formatter options (extended for feature parity) */
|
|
384
|
+
interface SpanGraphFormatterOptions {
|
|
385
|
+
/** Heading for the page. Default: "Architecture, as it ran" */
|
|
386
|
+
title?: string;
|
|
387
|
+
/** Scenario ids from a behavioural diff, which colour the changed components. */
|
|
388
|
+
delta?: {
|
|
389
|
+
added: string[];
|
|
390
|
+
changed: string[];
|
|
391
|
+
};
|
|
392
|
+
}
|
|
378
393
|
interface MarkdownFormatterOptions {
|
|
379
394
|
/** Report title. Default: "User Stories" */
|
|
380
395
|
title?: string;
|
|
@@ -408,6 +423,8 @@ interface MarkdownFormatterOptions {
|
|
|
408
423
|
includeSourceLinks?: boolean;
|
|
409
424
|
/** Custom renderers for doc entries */
|
|
410
425
|
customRenderers?: MarkdownRenderers;
|
|
426
|
+
/** Keep local screenshot/video paths, for markdown posted with `gh ... --attach`. Default: false */
|
|
427
|
+
attachImages?: boolean;
|
|
411
428
|
/** Emit a stable per-scenario anchor for deep-linking. Returns the id, or undefined to skip. */
|
|
412
429
|
scenarioAnchor?: (tc: TestCaseResult) => string | undefined;
|
|
413
430
|
/** Render a badge line under a scenario heading (e.g. a what's-changed marker). Undefined to skip. */
|
|
@@ -479,6 +496,8 @@ interface ResolvedFormatterOptions {
|
|
|
479
496
|
syntaxHighlighting: boolean;
|
|
480
497
|
mermaidEnabled: boolean;
|
|
481
498
|
staleAfterDays: number;
|
|
499
|
+
share: boolean;
|
|
500
|
+
shareCommand: string | undefined;
|
|
482
501
|
};
|
|
483
502
|
historyStore: HistoryStore | undefined;
|
|
484
503
|
junit: {
|
|
@@ -502,7 +521,9 @@ interface ResolvedFormatterOptions {
|
|
|
502
521
|
traceUrlTemplate?: string;
|
|
503
522
|
includeSourceLinks: boolean;
|
|
504
523
|
customRenderers?: MarkdownRenderers;
|
|
524
|
+
attachImages: boolean;
|
|
505
525
|
};
|
|
526
|
+
spanGraph: SpanGraphFormatterOptions;
|
|
506
527
|
confluence: {
|
|
507
528
|
title: string;
|
|
508
529
|
includeStatusIcons: boolean;
|
|
@@ -2040,6 +2061,14 @@ interface MarkdownOptions {
|
|
|
2040
2061
|
includeSourceLinks?: boolean;
|
|
2041
2062
|
/** Custom renderers for doc entries */
|
|
2042
2063
|
customRenderers?: MarkdownRenderers;
|
|
2064
|
+
/**
|
|
2065
|
+
* Write a local screenshot/video path as an ordinary markdown reference
|
|
2066
|
+
* instead of the "unavailable" line. Only for markdown handed to
|
|
2067
|
+
* `gh pr comment|create|edit --attach <path>` (GitHub CLI 2.99+), which
|
|
2068
|
+
* uploads the file and rewrites the reference. Anywhere else the reference
|
|
2069
|
+
* is dead, which is why this is off by default. Default: false
|
|
2070
|
+
*/
|
|
2071
|
+
attachImages?: boolean;
|
|
2043
2072
|
/**
|
|
2044
2073
|
* Emit a stable in-page anchor before each scenario heading, so external tools
|
|
2045
2074
|
* can deep-link to a scenario by fragment. Given a test case, return the anchor
|