@sun-asterisk/sungen 3.2.16-beta.7 → 3.2.17
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/dist/cli/commands/delivery.d.ts.map +1 -1
- package/dist/cli/commands/delivery.js +13 -197
- package/dist/cli/commands/delivery.js.map +1 -1
- package/dist/cli/commands/ingest.d.ts.map +1 -1
- package/dist/cli/commands/ingest.js +56 -4
- package/dist/cli/commands/ingest.js.map +1 -1
- package/dist/dashboard/templates/index.html +1 -1
- package/dist/exporters/feature-parser.js +1 -1
- package/dist/exporters/feature-parser.js.map +1 -1
- package/dist/exporters/scenario-merger.js +1 -1
- package/dist/exporters/scenario-merger.js.map +1 -1
- package/dist/exporters/spec-parser.js +1 -1
- package/dist/exporters/spec-parser.js.map +1 -1
- package/dist/exporters/xlsx-report-builder.d.ts +1 -1
- package/dist/exporters/xlsx-report-builder.d.ts.map +1 -1
- package/dist/exporters/xlsx-report-builder.js +3 -3
- package/dist/exporters/xlsx-report-builder.js.map +1 -1
- package/dist/generators/test-generator/adapters/playwright/templates/steps/actions/click-action.hbs +1 -1
- package/dist/generators/test-generator/adapters/playwright/templates/steps/actions/click-element-with-text.hbs +1 -1
- package/dist/generators/test-generator/adapters/playwright/templates/steps/navigation/wait-timeout.hbs +1 -1
- package/dist/generators/test-generator/utils/runtime-data-transformer.d.ts.map +1 -1
- package/dist/generators/test-generator/utils/runtime-data-transformer.js +28 -17
- package/dist/generators/test-generator/utils/runtime-data-transformer.js.map +1 -1
- package/dist/ingest/legacy-parser.d.ts +3 -0
- package/dist/ingest/legacy-parser.d.ts.map +1 -1
- package/dist/ingest/legacy-parser.js +52 -3
- package/dist/ingest/legacy-parser.js.map +1 -1
- package/dist/orchestrator/templates/ai-src/commands/delivery.md +120 -202
- package/dist/orchestrator/templates/ai-src/config/claude.md +1 -1
- package/dist/orchestrator/templates/ai-src/config/copilot.md +1 -1
- package/dist/orchestrator/templates/ai-src/skills/sungen-delivery/SKILL.md +6 -92
- package/dist/orchestrator/templates/ai-src/skills/sungen-gherkin-syntax/SKILL.md +7 -0
- package/package.json +4 -4
- package/src/cli/commands/delivery.ts +15 -227
- package/src/cli/commands/ingest.ts +57 -5
- package/src/dashboard/templates/index.html +1 -1
- package/src/exporters/feature-parser.ts +1 -1
- package/src/exporters/scenario-merger.ts +1 -1
- package/src/exporters/spec-parser.ts +1 -1
- package/src/exporters/xlsx-report-builder.ts +2 -3
- package/src/generators/test-generator/adapters/playwright/templates/steps/actions/click-action.hbs +1 -1
- package/src/generators/test-generator/adapters/playwright/templates/steps/actions/click-element-with-text.hbs +1 -1
- package/src/generators/test-generator/adapters/playwright/templates/steps/navigation/wait-timeout.hbs +1 -1
- package/src/generators/test-generator/utils/runtime-data-transformer.ts +29 -18
- package/src/ingest/legacy-parser.ts +48 -3
- package/src/orchestrator/templates/ai-src/commands/delivery.md +120 -202
- package/src/orchestrator/templates/ai-src/config/claude.md +1 -1
- package/src/orchestrator/templates/ai-src/config/copilot.md +1 -1
- package/src/orchestrator/templates/ai-src/skills/sungen-delivery/SKILL.md +6 -92
- package/src/orchestrator/templates/ai-src/skills/sungen-gherkin-syntax/SKILL.md +7 -0
- package/dist/exporters/matrix/build.d.ts +0 -61
- package/dist/exporters/matrix/build.d.ts.map +0 -1
- package/dist/exporters/matrix/build.js +0 -472
- package/dist/exporters/matrix/build.js.map +0 -1
- package/dist/exporters/matrix/export.d.ts +0 -50
- package/dist/exporters/matrix/export.d.ts.map +0 -1
- package/dist/exporters/matrix/export.js +0 -152
- package/dist/exporters/matrix/export.js.map +0 -1
- package/dist/exporters/matrix/fingerprint.d.ts +0 -20
- package/dist/exporters/matrix/fingerprint.d.ts.map +0 -1
- package/dist/exporters/matrix/fingerprint.js +0 -83
- package/dist/exporters/matrix/fingerprint.js.map +0 -1
- package/dist/exporters/matrix/gates.d.ts +0 -21
- package/dist/exporters/matrix/gates.d.ts.map +0 -1
- package/dist/exporters/matrix/gates.js +0 -358
- package/dist/exporters/matrix/gates.js.map +0 -1
- package/dist/exporters/matrix/map-loader.d.ts +0 -22
- package/dist/exporters/matrix/map-loader.d.ts.map +0 -1
- package/dist/exporters/matrix/map-loader.js +0 -193
- package/dist/exporters/matrix/map-loader.js.map +0 -1
- package/dist/exporters/matrix/render-csv.d.ts +0 -9
- package/dist/exporters/matrix/render-csv.d.ts.map +0 -1
- package/dist/exporters/matrix/render-csv.js +0 -92
- package/dist/exporters/matrix/render-csv.js.map +0 -1
- package/dist/exporters/matrix/render-xlsx.d.ts +0 -41
- package/dist/exporters/matrix/render-xlsx.d.ts.map +0 -1
- package/dist/exporters/matrix/render-xlsx.js +0 -430
- package/dist/exporters/matrix/render-xlsx.js.map +0 -1
- package/dist/exporters/matrix/types.d.ts +0 -196
- package/dist/exporters/matrix/types.d.ts.map +0 -1
- package/dist/exporters/matrix/types.js +0 -15
- package/dist/exporters/matrix/types.js.map +0 -1
- package/dist/exporters/matrix/wording.d.ts +0 -51
- package/dist/exporters/matrix/wording.d.ts.map +0 -1
- package/dist/exporters/matrix/wording.js +0 -169
- package/dist/exporters/matrix/wording.js.map +0 -1
- package/src/exporters/matrix/build.ts +0 -503
- package/src/exporters/matrix/export.ts +0 -149
- package/src/exporters/matrix/fingerprint.ts +0 -49
- package/src/exporters/matrix/gates.ts +0 -391
- package/src/exporters/matrix/map-loader.ts +0 -163
- package/src/exporters/matrix/render-csv.ts +0 -94
- package/src/exporters/matrix/render-xlsx.ts +0 -420
- package/src/exporters/matrix/types.ts +0 -223
- package/src/exporters/matrix/wording.ts +0 -174
|
@@ -1,430 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Render the Test Case & Coverage Matrix workbook.
|
|
4
|
-
*
|
|
5
|
-
* Sheets:
|
|
6
|
-
* 1. Testcases — one parent row per delivery item; EVERY item (including
|
|
7
|
-
* single-variant ones) carries variant sub-rows on Excel outline level 1 —
|
|
8
|
-
* the sub-row is where source traceability (VP-id), test data, and the
|
|
9
|
-
* manual result/evidence entry live (review B-05/B-06). Collapse outline
|
|
10
|
-
* level 1 for the customer/review view; expand to execute.
|
|
11
|
-
* 2. Coverage — requirement coverage (id ↔ items ↔ status), the target ×
|
|
12
|
-
* category grid (explicit `—` gaps), dispositions, and the manifest.
|
|
13
|
-
*
|
|
14
|
-
* Manual-execution support: variant Result cells carry a dropdown
|
|
15
|
-
* (Passed/Failed/Blocked/Pending/N/A) and the parent Result is a live Excel
|
|
16
|
-
* formula derived from its children — a parent can never contradict its
|
|
17
|
-
* variants, even after QA edits results by hand (review B-06).
|
|
18
|
-
*
|
|
19
|
-
* Every sheet keeps the company ISO masthead. A draft matrix (unapproved
|
|
20
|
-
* groups / review findings) carries a red DRAFT banner.
|
|
21
|
-
*/
|
|
22
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
23
|
-
if (k2 === undefined) k2 = k;
|
|
24
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
25
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
26
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
27
|
-
}
|
|
28
|
-
Object.defineProperty(o, k2, desc);
|
|
29
|
-
}) : (function(o, m, k, k2) {
|
|
30
|
-
if (k2 === undefined) k2 = k;
|
|
31
|
-
o[k2] = m[k];
|
|
32
|
-
}));
|
|
33
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
34
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
35
|
-
}) : function(o, v) {
|
|
36
|
-
o["default"] = v;
|
|
37
|
-
});
|
|
38
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
39
|
-
var ownKeys = function(o) {
|
|
40
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
41
|
-
var ar = [];
|
|
42
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
43
|
-
return ar;
|
|
44
|
-
};
|
|
45
|
-
return ownKeys(o);
|
|
46
|
-
};
|
|
47
|
-
return function (mod) {
|
|
48
|
-
if (mod && mod.__esModule) return mod;
|
|
49
|
-
var result = {};
|
|
50
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
51
|
-
__setModuleDefault(result, mod);
|
|
52
|
-
return result;
|
|
53
|
-
};
|
|
54
|
-
})();
|
|
55
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56
|
-
exports.itemModeLabel = itemModeLabel;
|
|
57
|
-
exports.itemResultLabel = itemResultLabel;
|
|
58
|
-
exports.coverageSummary = coverageSummary;
|
|
59
|
-
exports.renderMatrixXlsx = renderMatrixXlsx;
|
|
60
|
-
const ExcelJS = __importStar(require("exceljs"));
|
|
61
|
-
const xlsx_report_builder_1 = require("../xlsx-report-builder");
|
|
62
|
-
const build_1 = require("./build");
|
|
63
|
-
const CATEGORY_ORDER = ['normal', 'abnormal', 'security', 'nfr'];
|
|
64
|
-
const SOFT_BLUE = { argb: 'FFDCE6F1' };
|
|
65
|
-
const DRAFT_RED = { argb: 'FFC00000' };
|
|
66
|
-
const GAP_FILL = { argb: 'FFFCE4EC' };
|
|
67
|
-
const RESULT_STATES = 'Passed,Failed,Blocked,Pending,N/A';
|
|
68
|
-
function headerCell(c, label) {
|
|
69
|
-
c.value = label;
|
|
70
|
-
c.font = { bold: true, size: 10, color: xlsx_report_builder_1.BLACK, name: xlsx_report_builder_1.ARIAL_FONT };
|
|
71
|
-
c.fill = { type: 'pattern', pattern: 'solid', fgColor: xlsx_report_builder_1.LAVENDER };
|
|
72
|
-
c.alignment = { horizontal: 'center', vertical: 'middle', wrapText: true };
|
|
73
|
-
c.border = xlsx_report_builder_1.allBordersBlack;
|
|
74
|
-
}
|
|
75
|
-
function dataCell(c, value, opts) {
|
|
76
|
-
// An empty value stays a genuinely blank cell — never an empty shared string,
|
|
77
|
-
// which some renderers display as its string-table index (review M-03).
|
|
78
|
-
if (value !== '' && value !== undefined && value !== null)
|
|
79
|
-
c.value = value;
|
|
80
|
-
c.font = { bold: opts?.bold ?? false, size: 10, name: xlsx_report_builder_1.ARIAL_FONT, ...(opts?.color ? { color: opts.color } : {}) };
|
|
81
|
-
c.alignment = { horizontal: opts?.center ? 'center' : 'left', vertical: 'top', wrapText: true };
|
|
82
|
-
c.border = xlsx_report_builder_1.allBordersBlack;
|
|
83
|
-
if (opts?.fill)
|
|
84
|
-
c.fill = { type: 'pattern', pattern: 'solid', fgColor: opts.fill };
|
|
85
|
-
}
|
|
86
|
-
/** Mode is a coverage dimension: mixed items show both counts. */
|
|
87
|
-
function itemModeLabel(item) {
|
|
88
|
-
if (item.mode === 'mixed') {
|
|
89
|
-
const auto = item.variants.filter((v) => v.mode === 'auto').length;
|
|
90
|
-
return `Auto ${auto} · Manual ${item.variants.length - auto}`;
|
|
91
|
-
}
|
|
92
|
-
return item.mode === 'manual' ? 'Manual' : 'Auto';
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Parent roll-up label. It must NEVER be exactly one of the variant state words
|
|
96
|
-
* (`Passed`/`Failed`/`Blocked`/`Pending`/`N/A`) — the summary band counts the
|
|
97
|
-
* Result column with exact-match COUNTIF over parent AND child rows, so a parent
|
|
98
|
-
* reading plain "Pending" was counted as an extra pending variant (109 instead
|
|
99
|
-
* of 77 on st-login).
|
|
100
|
-
*/
|
|
101
|
-
function itemResultLabel(item) {
|
|
102
|
-
const { passed, failed, blocked, na } = item.resultCounts;
|
|
103
|
-
const eff = item.variants.length - na;
|
|
104
|
-
const suffix = na > 0 ? ` · ${na} N/A` : '';
|
|
105
|
-
if (item.result === 'na')
|
|
106
|
-
return 'All N/A';
|
|
107
|
-
if (item.result === 'failed')
|
|
108
|
-
return `${passed}/${eff} Passed · ${failed} Failed${suffix}`;
|
|
109
|
-
if (item.result === 'blocked')
|
|
110
|
-
return `${passed}/${eff} Passed · ${blocked} Blocked${suffix}`;
|
|
111
|
-
return `${passed}/${eff} Passed${suffix}`;
|
|
112
|
-
}
|
|
113
|
-
/** ISO date (2026-08-04) — unambiguous across locales (review §9). */
|
|
114
|
-
function isoDate(startTime) {
|
|
115
|
-
if (!startTime)
|
|
116
|
-
return '';
|
|
117
|
-
const d = new Date(startTime);
|
|
118
|
-
if (isNaN(d.getTime()))
|
|
119
|
-
return '';
|
|
120
|
-
return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`;
|
|
121
|
-
}
|
|
122
|
-
function numbered(lines, start = 1) {
|
|
123
|
-
if (lines.length === 0)
|
|
124
|
-
return '';
|
|
125
|
-
if (lines.length === 1 && start === 1)
|
|
126
|
-
return lines[0];
|
|
127
|
-
return lines.map((l, i) => `${start + i}. ${l}`).join('\n');
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Compact coverage summary for the parent row. A declared `dimensions:` digest
|
|
131
|
-
* wins ("15 variants — required ×3 · format ×9 …"); otherwise a single variant
|
|
132
|
-
* shows its condition and a group falls back to its variant REFS. Concatenating
|
|
133
|
-
* every variant's full title turned this cell into an 800-character paragraph.
|
|
134
|
-
*/
|
|
135
|
-
function coverageSummary(item) {
|
|
136
|
-
const n = item.variants.length;
|
|
137
|
-
const head = `${n} variant${n === 1 ? '' : 's'}:`;
|
|
138
|
-
if (item.dimensions)
|
|
139
|
-
return `${head} ${item.dimensions}`;
|
|
140
|
-
if (n === 1)
|
|
141
|
-
return `${head} ${item.variants[0].condition}`;
|
|
142
|
-
return `${head} ${item.variants.map((v) => v.ref).join(' · ')}`;
|
|
143
|
-
}
|
|
144
|
-
/** Expected cell = observable outcomes; the HOW moves under a separate heading. */
|
|
145
|
-
function expectedWithVerification(oracle, verification) {
|
|
146
|
-
const expected = numbered(oracle);
|
|
147
|
-
if (verification.length === 0)
|
|
148
|
-
return expected;
|
|
149
|
-
return `${expected}\nVerification method: ${verification.join(' ')}`;
|
|
150
|
-
}
|
|
151
|
-
/** Red DRAFT banner on row 5 when the matrix is not approved for official delivery. */
|
|
152
|
-
function draftBanner(ws, model) {
|
|
153
|
-
if (model.manifest.approvalState !== 'draft')
|
|
154
|
-
return;
|
|
155
|
-
ws.mergeCells('B5:H5');
|
|
156
|
-
const c = ws.getCell('B5');
|
|
157
|
-
c.value = 'DRAFT — NOT APPROVED FOR OFFICIAL DELIVERY (review-required findings or proposed groups remain)';
|
|
158
|
-
c.font = { bold: true, size: 11, name: xlsx_report_builder_1.ARIAL_FONT, color: { argb: 'FFFFFFFF' } };
|
|
159
|
-
c.fill = { type: 'pattern', pattern: 'solid', fgColor: DRAFT_RED };
|
|
160
|
-
c.alignment = { horizontal: 'center', vertical: 'middle' };
|
|
161
|
-
}
|
|
162
|
-
// ---------------------------------------------------------------------------
|
|
163
|
-
// Sheet 1 — Testcases (the matrix)
|
|
164
|
-
// ---------------------------------------------------------------------------
|
|
165
|
-
const MATRIX_HEADERS = [
|
|
166
|
-
'ID', 'Target', 'Test Intent / Condition', 'Category', 'Priority', 'Precondition',
|
|
167
|
-
'Coverage / Test Data', 'Action / Trigger', 'Expected Result', 'Mode', 'Trace',
|
|
168
|
-
'Result', 'Executed Date', 'Executor', 'Note / Evidence', 'Defect ID',
|
|
169
|
-
];
|
|
170
|
-
const RESULT_COL = 13; // column M
|
|
171
|
-
function addMatrixSheet(wb, model, sungenVersion) {
|
|
172
|
-
const ws = wb.addWorksheet('Testcases');
|
|
173
|
-
ws.properties.outlineLevelRow = 1;
|
|
174
|
-
ws.columns = [
|
|
175
|
-
{ width: 3 }, // A margin
|
|
176
|
-
{ width: 22 }, // B ID
|
|
177
|
-
{ width: 18 }, // C Target
|
|
178
|
-
{ width: 42 }, // D Intent / Condition
|
|
179
|
-
{ width: 11 }, // E Category
|
|
180
|
-
{ width: 9 }, // F Priority
|
|
181
|
-
{ width: 26 }, // G Precondition
|
|
182
|
-
{ width: 34 }, // H Coverage / Data
|
|
183
|
-
{ width: 34 }, // I Trigger
|
|
184
|
-
{ width: 42 }, // J Expected
|
|
185
|
-
{ width: 11 }, // K Mode
|
|
186
|
-
{ width: 13 }, // L Trace
|
|
187
|
-
{ width: 22 }, // M Result
|
|
188
|
-
{ width: 12 }, // N Executed
|
|
189
|
-
{ width: 13 }, // O Executor
|
|
190
|
-
{ width: 22 }, // P Note / Evidence
|
|
191
|
-
{ width: 12 }, // Q Defect ID
|
|
192
|
-
];
|
|
193
|
-
(0, xlsx_report_builder_1.renderReportHeaderBand)(wb, ws, `${model.unit.toUpperCase()} TEST CASE & COVERAGE MATRIX`, sungenVersion, model.formNo);
|
|
194
|
-
draftBanner(ws, model);
|
|
195
|
-
// Summary band (row 6) — items vs variants stay separate metrics by design (I8).
|
|
196
|
-
// The execution counters are LIVE formulas over the variant Result cells, so
|
|
197
|
-
// hand-entered results update the totals (review GAP-06). Variant cells hold the
|
|
198
|
-
// exact state words and parent cells NEVER do (itemResultLabel + the roll-up
|
|
199
|
-
// formula always compose a "n/m Passed …" label), so exact-match COUNTIF over
|
|
200
|
-
// the whole column counts variants only.
|
|
201
|
-
const sum = (k) => model.items.reduce((a, i) => a + i.resultCounts[k], 0);
|
|
202
|
-
const passed = sum('passed');
|
|
203
|
-
const failed = sum('failed');
|
|
204
|
-
const blocked = sum('blocked');
|
|
205
|
-
const notRun = sum('notRun');
|
|
206
|
-
const na = sum('na');
|
|
207
|
-
const RANGE = 'M9:M10000';
|
|
208
|
-
const band = ws.getRow(6);
|
|
209
|
-
const bandCells = [
|
|
210
|
-
['items', `Delivery items: ${model.manifest.itemCount}`],
|
|
211
|
-
['variants', `Coverage variants: ${model.manifest.variantCount}`],
|
|
212
|
-
['passed', { formula: `"Passed: "&COUNTIF(${RANGE},"Passed")`, result: `Passed: ${passed}` }],
|
|
213
|
-
['failed', { formula: `"Failed: "&COUNTIF(${RANGE},"Failed")`, result: `Failed: ${failed}` }],
|
|
214
|
-
['blocked', { formula: `"Blocked: "&COUNTIF(${RANGE},"Blocked")`, result: `Blocked: ${blocked}` }],
|
|
215
|
-
['pending', { formula: `"Pending: "&COUNTIF(${RANGE},"Pending")`, result: `Pending: ${notRun}` }],
|
|
216
|
-
['na', { formula: `"N/A: "&COUNTIF(${RANGE},"N/A")`, result: `N/A: ${na}` }],
|
|
217
|
-
];
|
|
218
|
-
bandCells.forEach(([, v], i) => {
|
|
219
|
-
const c = band.getCell(2 + i);
|
|
220
|
-
dataCell(c, v, { bold: true, fill: SOFT_BLUE, center: true });
|
|
221
|
-
});
|
|
222
|
-
const HEADER_ROW = 8;
|
|
223
|
-
const hr = ws.getRow(HEADER_ROW);
|
|
224
|
-
hr.height = 28;
|
|
225
|
-
MATRIX_HEADERS.forEach((label, i) => headerCell(hr.getCell(2 + i), label));
|
|
226
|
-
let rowIdx = HEADER_ROW + 1;
|
|
227
|
-
for (const item of model.items) {
|
|
228
|
-
const parentRowIdx = rowIdx++;
|
|
229
|
-
// --- Variant sub-rows FIRST (to know their cell range for the parent formula).
|
|
230
|
-
// Every item gets sub-rows — the sub-row is where the source scenario id, the
|
|
231
|
-
// resolved data, and the manual result/evidence entry live (review B-05).
|
|
232
|
-
const firstChild = rowIdx;
|
|
233
|
-
// Delta-only sub-rows (review GAP-01): content identical across the whole
|
|
234
|
-
// item lives ONCE on the parent — a child repeats only what distinguishes it.
|
|
235
|
-
// The child's Expected Result is always kept: it is the precise source
|
|
236
|
-
// oracle (the semantic anchor), not a repetition of the parent's summary.
|
|
237
|
-
for (const v of item.variants) {
|
|
238
|
-
const vr = ws.getRow(rowIdx++);
|
|
239
|
-
vr.outlineLevel = 1;
|
|
240
|
-
const vValues = [
|
|
241
|
-
v.ref,
|
|
242
|
-
'',
|
|
243
|
-
v.condition,
|
|
244
|
-
'', '',
|
|
245
|
-
numbered(item.preconditionDeltas[v.ref] ?? []),
|
|
246
|
-
numbered(v.data),
|
|
247
|
-
// Only the steps after the parent's shared prefix, numbered so the
|
|
248
|
-
// parent's steps + these read as one continuous procedure.
|
|
249
|
-
numbered(item.triggerDeltas[v.ref] ?? [], item.trigger.length + 1),
|
|
250
|
-
expectedWithVerification(v.oracle, v.verification),
|
|
251
|
-
v.mode === 'manual' ? `Manual${v.manualReason ? ` (${v.manualReason})` : ''}` : 'Auto',
|
|
252
|
-
v.traces.join(', '),
|
|
253
|
-
(0, build_1.variantState)(v),
|
|
254
|
-
isoDate(v.result?.startTime),
|
|
255
|
-
'',
|
|
256
|
-
v.result?.error ? String(v.result.error).slice(0, 200) : '',
|
|
257
|
-
'',
|
|
258
|
-
];
|
|
259
|
-
vValues.forEach((val, i) => dataCell(vr.getCell(2 + i), val, { center: i === 9 }));
|
|
260
|
-
// Manual-execution entry: constrain the Result cell to the known states.
|
|
261
|
-
vr.getCell(2 + 11).dataValidation = {
|
|
262
|
-
type: 'list', allowBlank: true, formulae: [`"${RESULT_STATES}"`],
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
const lastChild = rowIdx - 1;
|
|
266
|
-
// --- Parent row: only values that are genuinely COMMON to the whole item
|
|
267
|
-
// (review M-04); everything variant-specific stays on the sub-rows.
|
|
268
|
-
const pr = ws.getRow(parentRowIdx);
|
|
269
|
-
const coverage = coverageSummary(item);
|
|
270
|
-
// Live roll-up derived from the child Result cells — precedence
|
|
271
|
-
// failed → blocked → pending → partial → passed. N/A variants leave the
|
|
272
|
-
// denominator (review GAP-06): eff = n − COUNTIF(N/A); all-N/A → "N/A".
|
|
273
|
-
const rng = `M${firstChild}:M${lastChild}`;
|
|
274
|
-
const n = item.variants.length;
|
|
275
|
-
const EFF = `(${n}-COUNTIF(${rng},"N/A"))`;
|
|
276
|
-
const NA = `IF(COUNTIF(${rng},"N/A")>0," · "&COUNTIF(${rng},"N/A")&" N/A","")`;
|
|
277
|
-
// Mirrors itemResultLabel exactly — and never yields a bare state word.
|
|
278
|
-
const rollUpFormula = `IF(COUNTIF(${rng},"Failed")>0,COUNTIF(${rng},"Passed")&"/"&${EFF}&" Passed · "&COUNTIF(${rng},"Failed")&" Failed"&${NA},` +
|
|
279
|
-
`IF(COUNTIF(${rng},"Blocked")>0,COUNTIF(${rng},"Passed")&"/"&${EFF}&" Passed · "&COUNTIF(${rng},"Blocked")&" Blocked"&${NA},` +
|
|
280
|
-
`IF(${EFF}=0,"All N/A",` +
|
|
281
|
-
`COUNTIF(${rng},"Passed")&"/"&${EFF}&" Passed"&${NA})))`;
|
|
282
|
-
const values = [
|
|
283
|
-
item.id,
|
|
284
|
-
item.target,
|
|
285
|
-
item.intent,
|
|
286
|
-
item.category,
|
|
287
|
-
item.priority,
|
|
288
|
-
numbered(item.precondition),
|
|
289
|
-
coverage,
|
|
290
|
-
// The shared leading steps; each variant's remaining steps sit on its sub-row.
|
|
291
|
-
numbered(item.trigger),
|
|
292
|
-
item.oracle,
|
|
293
|
-
itemModeLabel(item),
|
|
294
|
-
item.traces.join(', '),
|
|
295
|
-
{ formula: rollUpFormula, result: itemResultLabel(item) },
|
|
296
|
-
'',
|
|
297
|
-
'',
|
|
298
|
-
item.review === 'proposed' ? 'REVIEW REQUIRED' : '',
|
|
299
|
-
'',
|
|
300
|
-
];
|
|
301
|
-
values.forEach((v, i) => dataCell(pr.getCell(2 + i), v, {
|
|
302
|
-
bold: true,
|
|
303
|
-
fill: SOFT_BLUE,
|
|
304
|
-
center: i === 3 || i === 4 || i === 9,
|
|
305
|
-
...(i === 14 && item.review === 'proposed' ? { color: DRAFT_RED } : {}),
|
|
306
|
-
}));
|
|
307
|
-
}
|
|
308
|
-
ws.autoFilter = { from: { row: HEADER_ROW, column: 2 }, to: { row: rowIdx - 1, column: 17 } };
|
|
309
|
-
// Freeze the header band AND the ID + Target columns (review §9).
|
|
310
|
-
ws.views = [{ state: 'frozen', xSplit: 3, ySplit: HEADER_ROW }];
|
|
311
|
-
// Print: landscape, fit width only (never squash all rows into one page),
|
|
312
|
-
// repeat the masthead + header rows on every page (review GAP-08).
|
|
313
|
-
ws.pageSetup = {
|
|
314
|
-
orientation: 'landscape',
|
|
315
|
-
fitToPage: true,
|
|
316
|
-
fitToWidth: 1,
|
|
317
|
-
fitToHeight: 0,
|
|
318
|
-
printTitlesRow: '1:8',
|
|
319
|
-
};
|
|
320
|
-
}
|
|
321
|
-
// ---------------------------------------------------------------------------
|
|
322
|
-
// Sheet 2 — Coverage (requirements + overview grid + dispositions + manifest)
|
|
323
|
-
// ---------------------------------------------------------------------------
|
|
324
|
-
function addCoverageSheet(wb, model, sungenVersion) {
|
|
325
|
-
const ws = wb.addWorksheet('Coverage');
|
|
326
|
-
ws.columns = [
|
|
327
|
-
{ width: 3 }, { width: 22 }, { width: 18 }, { width: 16 }, { width: 16 }, { width: 16 },
|
|
328
|
-
{ width: 16 }, { width: 44 },
|
|
329
|
-
];
|
|
330
|
-
(0, xlsx_report_builder_1.renderReportHeaderBand)(wb, ws, `${model.unit.toUpperCase()} COVERAGE OVERVIEW`, sungenVersion, model.formNo);
|
|
331
|
-
draftBanner(ws, model);
|
|
332
|
-
let rowIdx = 7;
|
|
333
|
-
// --- Requirement coverage (review §6): every requirement id gets ONE explicit status.
|
|
334
|
-
if (model.requirements.length > 0) {
|
|
335
|
-
dataCell(ws.getRow(rowIdx).getCell(2), 'Requirement coverage — every id has an explicit status', { bold: true });
|
|
336
|
-
rowIdx += 1;
|
|
337
|
-
const rh = ws.getRow(rowIdx);
|
|
338
|
-
ws.mergeCells(rowIdx, 4, rowIdx, 6);
|
|
339
|
-
headerCell(rh.getCell(2), 'Requirement');
|
|
340
|
-
headerCell(rh.getCell(3), 'Status');
|
|
341
|
-
headerCell(rh.getCell(4), 'Delivery items');
|
|
342
|
-
headerCell(rh.getCell(7), 'Variants');
|
|
343
|
-
headerCell(rh.getCell(8), 'Note');
|
|
344
|
-
rowIdx += 1;
|
|
345
|
-
for (const r of model.requirements) {
|
|
346
|
-
const row = ws.getRow(rowIdx++);
|
|
347
|
-
dataCell(row.getCell(2), r.id, { bold: true });
|
|
348
|
-
dataCell(row.getCell(3), r.status, {
|
|
349
|
-
center: true,
|
|
350
|
-
...(r.status === 'gap' ? { fill: GAP_FILL, bold: true } : {}),
|
|
351
|
-
});
|
|
352
|
-
ws.mergeCells(rowIdx - 1, 4, rowIdx - 1, 6);
|
|
353
|
-
dataCell(row.getCell(4), r.items.join(', '));
|
|
354
|
-
dataCell(row.getCell(7), r.variantCount > 0 ? String(r.variantCount) : '', { center: true });
|
|
355
|
-
dataCell(row.getCell(8), r.note);
|
|
356
|
-
}
|
|
357
|
-
rowIdx += 1;
|
|
358
|
-
}
|
|
359
|
-
// --- Target × category grid ---
|
|
360
|
-
dataCell(ws.getRow(rowIdx).getCell(2), 'Coverage matrix — delivery items (coverage variants) per target × category', { bold: true });
|
|
361
|
-
rowIdx += 1;
|
|
362
|
-
const gridHeader = ws.getRow(rowIdx++);
|
|
363
|
-
headerCell(gridHeader.getCell(2), 'Target');
|
|
364
|
-
CATEGORY_ORDER.forEach((cat, i) => headerCell(gridHeader.getCell(3 + i), cat));
|
|
365
|
-
headerCell(gridHeader.getCell(3 + CATEGORY_ORDER.length), 'Total');
|
|
366
|
-
const targets = Array.from(new Set(model.items.map((i) => i.target)));
|
|
367
|
-
for (const target of targets) {
|
|
368
|
-
const row = ws.getRow(rowIdx++);
|
|
369
|
-
dataCell(row.getCell(2), target, { bold: true });
|
|
370
|
-
let totalItems = 0;
|
|
371
|
-
let totalVariants = 0;
|
|
372
|
-
CATEGORY_ORDER.forEach((cat, i) => {
|
|
373
|
-
const cell = row.getCell(3 + i);
|
|
374
|
-
const items = model.items.filter((it) => it.target === target && it.category === cat);
|
|
375
|
-
const variants = items.reduce((a, it) => a + it.variants.length, 0);
|
|
376
|
-
totalItems += items.length;
|
|
377
|
-
totalVariants += variants;
|
|
378
|
-
// `—` is an explicit statement: this target × category cell has NO coverage.
|
|
379
|
-
dataCell(cell, items.length === 0 ? '—' : `${items.length} (${variants})`, {
|
|
380
|
-
center: true,
|
|
381
|
-
...(items.length === 0 ? { fill: GAP_FILL } : {}),
|
|
382
|
-
});
|
|
383
|
-
});
|
|
384
|
-
dataCell(row.getCell(3 + CATEGORY_ORDER.length), `${totalItems} (${totalVariants})`, { center: true, bold: true });
|
|
385
|
-
}
|
|
386
|
-
// --- Dispositions ---
|
|
387
|
-
if (model.dispositions.length > 0) {
|
|
388
|
-
rowIdx += 1;
|
|
389
|
-
dataCell(ws.getRow(rowIdx).getCell(2), 'Not in the matrix (explicit dispositions)', { bold: true });
|
|
390
|
-
rowIdx += 1;
|
|
391
|
-
const dh = ws.getRow(rowIdx++);
|
|
392
|
-
['Source', 'Disposition', 'Reason', 'Title'].forEach((l, i) => headerCell(dh.getCell(2 + i), l));
|
|
393
|
-
for (const d of model.dispositions) {
|
|
394
|
-
const row = ws.getRow(rowIdx++);
|
|
395
|
-
dataCell(row.getCell(2), d.vpId);
|
|
396
|
-
dataCell(row.getCell(3), d.as, { center: true });
|
|
397
|
-
dataCell(row.getCell(4), d.reason);
|
|
398
|
-
dataCell(row.getCell(5), d.title);
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
// --- Manifest ---
|
|
402
|
-
rowIdx += 1;
|
|
403
|
-
dataCell(ws.getRow(rowIdx).getCell(2), 'Generation manifest', { bold: true });
|
|
404
|
-
rowIdx += 1;
|
|
405
|
-
const m = model.manifest;
|
|
406
|
-
const manifestRows = [
|
|
407
|
-
['Unit', m.unit],
|
|
408
|
-
['Approval state', m.approvalState],
|
|
409
|
-
['Delivery items', String(m.itemCount)],
|
|
410
|
-
['Coverage variants', String(m.variantCount)],
|
|
411
|
-
['Source fingerprint', m.sourceFingerprint],
|
|
412
|
-
['Map fingerprint', m.mapFingerprint],
|
|
413
|
-
['Transformer version', m.transformerVersion],
|
|
414
|
-
['Max variants / item (warn)', String(m.thresholds.maxVariantsPerItem)],
|
|
415
|
-
];
|
|
416
|
-
for (const [k, v] of manifestRows) {
|
|
417
|
-
const row = ws.getRow(rowIdx++);
|
|
418
|
-
dataCell(row.getCell(2), k, { bold: true, fill: SOFT_BLUE });
|
|
419
|
-
ws.mergeCells(rowIdx - 1, 3, rowIdx - 1, 7);
|
|
420
|
-
dataCell(row.getCell(3), v);
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
// ---------------------------------------------------------------------------
|
|
424
|
-
function renderMatrixXlsx(model, sungenVersion) {
|
|
425
|
-
const wb = new ExcelJS.Workbook();
|
|
426
|
-
addMatrixSheet(wb, model, sungenVersion);
|
|
427
|
-
addCoverageSheet(wb, model, sungenVersion);
|
|
428
|
-
return wb;
|
|
429
|
-
}
|
|
430
|
-
//# sourceMappingURL=render-xlsx.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-xlsx.js","sourceRoot":"","sources":["../../../src/exporters/matrix/render-xlsx.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCH,sCAMC;AASD,0CAQC;AAsBD,0CAMC;AAkTD,4CAKC;AA9YD,iDAAmC;AACnC,gEAMgC;AAChC,mCAAuC;AAGvC,MAAM,cAAc,GAAkB,CAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;AAChF,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AACvC,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AACvC,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AACtC,MAAM,aAAa,GAAG,mCAAmC,CAAC;AAE1D,SAAS,UAAU,CAAC,CAAe,EAAE,KAAa;IAChD,CAAC,CAAC,KAAK,GAAG,KAAK,CAAC;IAChB,CAAC,CAAC,IAAI,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,2BAAK,EAAE,IAAI,EAAE,gCAAU,EAAE,CAAC;IAClE,CAAC,CAAC,IAAI,GAAG,EAAE,IAAI,EAAE,SA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C,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;QAC7D,EAAE,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QAC5C,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC;AAED,8EAA8E;AAE9E,SAAgB,gBAAgB,CAAC,KAAkB,EAAE,aAAsB;IACzE,MAAM,EAAE,GAAG,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAClC,cAAc,CAAC,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC;IAC3C,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delivery v2 — Test Case & Coverage Matrix model (docs/spec/delivery-coverage-matrix-spec.md).
|
|
3
|
-
*
|
|
4
|
-
* Gherkin stays the source of test meaning; the matrix is a derived presentation:
|
|
5
|
-
* one delivery item = one target + one intent + one oracle family, containing one or
|
|
6
|
-
* more atomic coverage variants (scenario / @cases row). Grouping semantics live in the
|
|
7
|
-
* committed Delivery Map (`qa/<kind>/<unit>/delivery/<unit>.map.yaml`) — AI-proposed,
|
|
8
|
-
* gate-validated, QA-approved.
|
|
9
|
-
*/
|
|
10
|
-
import { PlaywrightResult } from '../types';
|
|
11
|
-
export type MapCategory = 'normal' | 'abnormal' | 'security' | 'nfr';
|
|
12
|
-
export type ReviewState = 'proposed' | 'approved';
|
|
13
|
-
export type DispositionKind = 'excluded' | 'blocked' | 'covered_elsewhere' | 'accepted_risk';
|
|
14
|
-
export interface MapGroup {
|
|
15
|
-
/** Stable delivery id, unique per unit, order-independent (e.g. DI-EMAIL-FORMAT). */
|
|
16
|
-
id: string;
|
|
17
|
-
/** ONE primary target: field/component dot-path, function/flow phrase, or `METHOD /path`. */
|
|
18
|
-
target: string;
|
|
19
|
-
/** One coherent test intent (the primary behavior/rule verified). */
|
|
20
|
-
intent: string;
|
|
21
|
-
/** Oracle family in words — the shared Pass/Fail observation. */
|
|
22
|
-
oracle: string;
|
|
23
|
-
category: MapCategory;
|
|
24
|
-
review: ReviewState;
|
|
25
|
-
/** Optional short digest of the coverage dimensions this item varies over
|
|
26
|
-
* (e.g. "required ×3 · format ×9 · full-width ×2"). Rendered on the parent row
|
|
27
|
-
* instead of concatenating every variant's title — the compact review view. */
|
|
28
|
-
dimensions?: string;
|
|
29
|
-
/** Variant refs: `VP-ID` (all @cases rows when the scenario has a dataset) or `VP-ID#label`. */
|
|
30
|
-
variants: string[];
|
|
31
|
-
}
|
|
32
|
-
export interface MapDisposition {
|
|
33
|
-
as: DispositionKind;
|
|
34
|
-
reason?: string;
|
|
35
|
-
}
|
|
36
|
-
export type RequirementStatus = 'covered' | 'partially_covered' | 'covered_elsewhere' | 'planned' | 'gap' | 'not_applicable';
|
|
37
|
-
export interface RequirementOverride {
|
|
38
|
-
status: RequirementStatus;
|
|
39
|
-
note?: string;
|
|
40
|
-
}
|
|
41
|
-
export interface DeliveryMap {
|
|
42
|
-
version: number;
|
|
43
|
-
unit: string;
|
|
44
|
-
/** ISO form number rendered in the workbook masthead (default BM-2-901-13). */
|
|
45
|
-
formNo?: string;
|
|
46
|
-
groups: MapGroup[];
|
|
47
|
-
/** VP-id → intentionally-not-grouped disposition. */
|
|
48
|
-
dispositions: Record<string, MapDisposition>;
|
|
49
|
-
/** Requirement-id → reviewed status override (partially_covered / not_applicable / …).
|
|
50
|
-
* Without an override a requirement is `covered` when a variant traces to it, else `gap`. */
|
|
51
|
-
requirements: Record<string, RequirementOverride>;
|
|
52
|
-
/** VP-id → scenario fingerprint stamped at approval time (drift detector input).
|
|
53
|
-
* The reserved key `__map__` holds the fingerprint of the map's own semantic
|
|
54
|
-
* content (groups + dispositions) so edited wording re-opens review (GAP-09). */
|
|
55
|
-
fingerprints: Record<string, string>;
|
|
56
|
-
}
|
|
57
|
-
/** Execution layers a variant verifies on — cross-checked with the verification scope. */
|
|
58
|
-
export type MatrixLayer = 'ui' | 'api' | 'db';
|
|
59
|
-
/**
|
|
60
|
-
* One atomic coverage variant — the unit of execution, result, and traceability.
|
|
61
|
-
* Backed by one scenario, or one `@cases` dataset row of a scenario.
|
|
62
|
-
*/
|
|
63
|
-
export interface CoverageVariant {
|
|
64
|
-
/** `VP-ID` or `VP-ID#label` for a dataset row. */
|
|
65
|
-
ref: string;
|
|
66
|
-
vpId: string;
|
|
67
|
-
/** Dataset-row label when this variant is one `@cases` row. */
|
|
68
|
-
caseLabel?: string;
|
|
69
|
-
/** Human title (scenario name without the VP prefix; row label appended for @cases). */
|
|
70
|
-
title: string;
|
|
71
|
-
/** Viewpoint category from the VP prefix (LOGIC/VAL/UI/SEC/…). */
|
|
72
|
-
vpCategory: string;
|
|
73
|
-
priority: string;
|
|
74
|
-
/** 'auto' | 'manual'; manual keeps its @manual:Mx reason. */
|
|
75
|
-
mode: 'auto' | 'manual';
|
|
76
|
-
manualReason?: string;
|
|
77
|
-
layers: MatrixLayer[];
|
|
78
|
-
/** @spec:* requirement traces. */
|
|
79
|
-
traces: string[];
|
|
80
|
-
/** Condition summary: differentiating dimension shown on the sub-row. */
|
|
81
|
-
condition: string;
|
|
82
|
-
/** Resolved data pairs (test-data values / dataset-row columns), `key: value` lines. */
|
|
83
|
-
data: string[];
|
|
84
|
-
/** Normalized trigger shape (When steps, `{{var}}` collapsed) — signature input. */
|
|
85
|
-
triggerShape: string[];
|
|
86
|
-
/** Trigger for display (When steps, vars resolved). */
|
|
87
|
-
trigger: string[];
|
|
88
|
-
/** Normalized oracle shape (Then steps / manual Observable+Oracle) — signature input. */
|
|
89
|
-
oracleShape: string[];
|
|
90
|
-
/** Oracle for display. */
|
|
91
|
-
oracle: string[];
|
|
92
|
-
/** HOW to check (manual `Oracle:` lines — tools, panes, queries). Rendered as
|
|
93
|
-
* "Verification method" under the expected result, never inside it. */
|
|
94
|
-
verification: string[];
|
|
95
|
-
/** Precondition profile: auth role + scenario-level Given shapes — signature input. */
|
|
96
|
-
preconditionProfile: string;
|
|
97
|
-
/** Human preconditions (auth + own Given steps). */
|
|
98
|
-
precondition: string[];
|
|
99
|
-
/** 'simple' (G*W*T*) | 'sequence' (mid-flow Given / multi round-trip) | 'manual'. */
|
|
100
|
-
procedureProfile: 'simple' | 'sequence' | 'manual';
|
|
101
|
-
/** Canonical scenario fingerprint (drift detection). */
|
|
102
|
-
fingerprint: string;
|
|
103
|
-
/** Execution result, when the run report has one for this variant. */
|
|
104
|
-
result?: PlaywrightResult;
|
|
105
|
-
}
|
|
106
|
-
export type ItemResult = 'passed' | 'failed' | 'blocked' | 'partial' | 'not_run' | 'na';
|
|
107
|
-
/** The exact word rendered in a variant's Result cell — the single vocabulary the
|
|
108
|
-
* parent's roll-up formula counts (COUNTIF is exact-match). */
|
|
109
|
-
export type VariantState = 'Passed' | 'Failed' | 'Blocked' | 'Pending' | 'N/A';
|
|
110
|
-
/** One summarized row in the matrix — a group of variants sharing the signature. */
|
|
111
|
-
export interface DeliveryItem {
|
|
112
|
-
id: string;
|
|
113
|
-
target: string;
|
|
114
|
-
intent: string;
|
|
115
|
-
oracle: string;
|
|
116
|
-
/** Short coverage-dimension digest from the map (compact parent view). */
|
|
117
|
-
dimensions?: string;
|
|
118
|
-
category: MapCategory;
|
|
119
|
-
review: ReviewState;
|
|
120
|
-
/** Highest priority among the variants (per-variant priorities stay on the sub-rows). */
|
|
121
|
-
priority: string;
|
|
122
|
-
/** Execution mode is a coverage dimension, not a split — 'mixed' when auto and
|
|
123
|
-
* manual variants share one intent (e.g. account states needing seeded data). */
|
|
124
|
-
mode: 'auto' | 'manual' | 'mixed';
|
|
125
|
-
layers: MatrixLayer[];
|
|
126
|
-
/** Union of variant traces (exact per-variant traces stay on the variants). */
|
|
127
|
-
traces: string[];
|
|
128
|
-
/** Preconditions shared by EVERY variant (the intersection) — written once here. */
|
|
129
|
-
precondition: string[];
|
|
130
|
-
/** Leading trigger steps shared by every variant — written once here; each
|
|
131
|
-
* variant renders only its remaining steps (`triggerDeltas`). */
|
|
132
|
-
trigger: string[];
|
|
133
|
-
variants: CoverageVariant[];
|
|
134
|
-
/** variant ref → its precondition lines that are not on the parent. */
|
|
135
|
-
preconditionDeltas: Record<string, string[]>;
|
|
136
|
-
/** variant ref → its trigger steps after the shared prefix. */
|
|
137
|
-
triggerDeltas: Record<string, string[]>;
|
|
138
|
-
/** Derived roll-up — never entered independently (Gate F). */
|
|
139
|
-
result: ItemResult;
|
|
140
|
-
resultCounts: {
|
|
141
|
-
passed: number;
|
|
142
|
-
failed: number;
|
|
143
|
-
blocked: number;
|
|
144
|
-
notRun: number;
|
|
145
|
-
na: number;
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
export interface MatrixDisposition {
|
|
149
|
-
vpId: string;
|
|
150
|
-
title: string;
|
|
151
|
-
as: DispositionKind;
|
|
152
|
-
reason: string;
|
|
153
|
-
}
|
|
154
|
-
/** One row of the requirement-coverage table (Coverage sheet). */
|
|
155
|
-
export interface RequirementCoverage {
|
|
156
|
-
id: string;
|
|
157
|
-
status: RequirementStatus;
|
|
158
|
-
/** Delivery items whose variants trace to this requirement. */
|
|
159
|
-
items: string[];
|
|
160
|
-
variantCount: number;
|
|
161
|
-
note: string;
|
|
162
|
-
}
|
|
163
|
-
export type GateId = 'A' | 'B' | 'C' | 'D' | 'E' | 'G' | 'K' | 'R' | 'W';
|
|
164
|
-
export type FindingSeverity = 'error' | 'review' | 'warning';
|
|
165
|
-
export interface MatrixFinding {
|
|
166
|
-
gate: GateId;
|
|
167
|
-
severity: FindingSeverity;
|
|
168
|
-
/** Delivery item / VP-id the finding anchors to, when applicable. */
|
|
169
|
-
ref?: string;
|
|
170
|
-
message: string;
|
|
171
|
-
}
|
|
172
|
-
export interface MatrixManifest {
|
|
173
|
-
unit: string;
|
|
174
|
-
transformerVersion: string;
|
|
175
|
-
sourceFingerprint: string;
|
|
176
|
-
mapFingerprint: string;
|
|
177
|
-
approvalState: 'approved' | 'draft';
|
|
178
|
-
itemCount: number;
|
|
179
|
-
variantCount: number;
|
|
180
|
-
thresholds: {
|
|
181
|
-
maxVariantsPerItem: number;
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
export interface MatrixModel {
|
|
185
|
-
unit: string;
|
|
186
|
-
formNo: string;
|
|
187
|
-
items: DeliveryItem[];
|
|
188
|
-
dispositions: MatrixDisposition[];
|
|
189
|
-
/** Requirement coverage — empty when the unit has no requirements/spec.md ids. */
|
|
190
|
-
requirements: RequirementCoverage[];
|
|
191
|
-
findings: MatrixFinding[];
|
|
192
|
-
manifest: MatrixManifest;
|
|
193
|
-
}
|
|
194
|
-
/** Complexity warning threshold (rules draft Gate I; raised for compact grouping) — echoed in the manifest. */
|
|
195
|
-
export declare const MAX_VARIANTS_PER_ITEM = 20;
|
|
196
|
-
//# sourceMappingURL=types.d.ts.map
|