@su-record/vibe 2.5.21 → 2.6.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/CLAUDE.md +154 -2
- package/README.md +132 -2
- package/commands/vibe.run.md +69 -44
- package/commands/vibe.spec.md +83 -0
- package/commands/vibe.trace.md +161 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +5 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/lib/IterationTracker.d.ts +3 -1
- package/dist/lib/IterationTracker.d.ts.map +1 -1
- package/dist/lib/IterationTracker.js +2 -1
- package/dist/lib/IterationTracker.js.map +1 -1
- package/dist/lib/constants.d.ts +14 -0
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +26 -0
- package/dist/lib/constants.js.map +1 -1
- package/dist/orchestrator/BackgroundManager.d.ts +109 -0
- package/dist/orchestrator/BackgroundManager.d.ts.map +1 -0
- package/dist/orchestrator/BackgroundManager.js +456 -0
- package/dist/orchestrator/BackgroundManager.js.map +1 -0
- package/dist/orchestrator/BackgroundManager.test.d.ts +6 -0
- package/dist/orchestrator/BackgroundManager.test.d.ts.map +1 -0
- package/dist/orchestrator/BackgroundManager.test.js +162 -0
- package/dist/orchestrator/BackgroundManager.test.js.map +1 -0
- package/dist/orchestrator/PhasePipeline.d.ts +106 -0
- package/dist/orchestrator/PhasePipeline.d.ts.map +1 -0
- package/dist/orchestrator/PhasePipeline.js +279 -0
- package/dist/orchestrator/PhasePipeline.js.map +1 -0
- package/dist/orchestrator/backgroundAgent.d.ts +2 -0
- package/dist/orchestrator/backgroundAgent.d.ts.map +1 -1
- package/dist/orchestrator/backgroundAgent.js +2 -0
- package/dist/orchestrator/backgroundAgent.js.map +1 -1
- package/dist/orchestrator/index.d.ts +4 -1
- package/dist/orchestrator/index.d.ts.map +1 -1
- package/dist/orchestrator/index.js +5 -1
- package/dist/orchestrator/index.js.map +1 -1
- package/dist/tools/index.d.ts +4 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +14 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/interaction/askUser.d.ts +115 -0
- package/dist/tools/interaction/askUser.d.ts.map +1 -0
- package/dist/tools/interaction/askUser.js +504 -0
- package/dist/tools/interaction/askUser.js.map +1 -0
- package/dist/tools/interaction/index.d.ts +8 -0
- package/dist/tools/interaction/index.d.ts.map +1 -0
- package/dist/tools/interaction/index.js +17 -0
- package/dist/tools/interaction/index.js.map +1 -0
- package/dist/tools/spec/index.d.ts +14 -0
- package/dist/tools/spec/index.d.ts.map +1 -0
- package/dist/tools/spec/index.js +15 -0
- package/dist/tools/spec/index.js.map +1 -0
- package/dist/tools/spec/prdParser.d.ts +43 -0
- package/dist/tools/spec/prdParser.d.ts.map +1 -0
- package/dist/tools/spec/prdParser.js +291 -0
- package/dist/tools/spec/prdParser.js.map +1 -0
- package/dist/tools/spec/prdParser.test.d.ts +6 -0
- package/dist/tools/spec/prdParser.test.d.ts.map +1 -0
- package/dist/tools/spec/prdParser.test.js +332 -0
- package/dist/tools/spec/prdParser.test.js.map +1 -0
- package/dist/tools/spec/requirementId.d.ts +65 -0
- package/dist/tools/spec/requirementId.d.ts.map +1 -0
- package/dist/tools/spec/requirementId.js +161 -0
- package/dist/tools/spec/requirementId.js.map +1 -0
- package/dist/tools/spec/specGenerator.d.ts +39 -0
- package/dist/tools/spec/specGenerator.d.ts.map +1 -0
- package/dist/tools/spec/specGenerator.js +426 -0
- package/dist/tools/spec/specGenerator.js.map +1 -0
- package/dist/tools/spec/specVersioning.d.ts +77 -0
- package/dist/tools/spec/specVersioning.d.ts.map +1 -0
- package/dist/tools/spec/specVersioning.js +237 -0
- package/dist/tools/spec/specVersioning.js.map +1 -0
- package/dist/tools/spec/traceabilityMatrix.d.ts +55 -0
- package/dist/tools/spec/traceabilityMatrix.d.ts.map +1 -0
- package/dist/tools/spec/traceabilityMatrix.js +396 -0
- package/dist/tools/spec/traceabilityMatrix.js.map +1 -0
- package/dist/tools/spec/traceabilityMatrix.test.d.ts +6 -0
- package/dist/tools/spec/traceabilityMatrix.test.d.ts.map +1 -0
- package/dist/tools/spec/traceabilityMatrix.test.js +340 -0
- package/dist/tools/spec/traceabilityMatrix.test.js.map +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Traceability Matrix - 요구사항 추적 매트릭스 자동 생성
|
|
3
|
+
* v2.6.0: RTM (Requirements Traceability Matrix) 자동화
|
|
4
|
+
*
|
|
5
|
+
* 매핑: REQ → SPEC → Feature → Test
|
|
6
|
+
*/
|
|
7
|
+
import * as fs from 'fs';
|
|
8
|
+
import * as path from 'path';
|
|
9
|
+
// ============================================
|
|
10
|
+
// Main Functions
|
|
11
|
+
// ============================================
|
|
12
|
+
/**
|
|
13
|
+
* 추적 매트릭스 생성 (메인 함수)
|
|
14
|
+
*/
|
|
15
|
+
export function generateTraceabilityMatrix(featureName, options = {}) {
|
|
16
|
+
const { projectPath = process.cwd(), specPath = `.claude/vibe/specs/${featureName}.md`, featurePath = `.claude/vibe/features/${featureName}.feature`, testPath, } = options;
|
|
17
|
+
const items = [];
|
|
18
|
+
const warnings = [];
|
|
19
|
+
// SPEC 파일 파싱
|
|
20
|
+
const specContent = readFileSafe(path.join(projectPath, specPath));
|
|
21
|
+
const specRequirements = specContent ? extractRequirementsFromSpec(specContent) : [];
|
|
22
|
+
// Feature 파일 파싱
|
|
23
|
+
const featureContent = readFileSafe(path.join(projectPath, featurePath));
|
|
24
|
+
const featureScenarios = featureContent ? extractScenariosFromFeature(featureContent) : [];
|
|
25
|
+
// 테스트 파일 파싱 (있으면)
|
|
26
|
+
const testFiles = testPath
|
|
27
|
+
? findTestFiles(path.join(projectPath, testPath))
|
|
28
|
+
: findTestFilesForFeature(projectPath, featureName);
|
|
29
|
+
const testMappings = extractTestMappings(testFiles);
|
|
30
|
+
// 매트릭스 구축
|
|
31
|
+
for (const req of specRequirements) {
|
|
32
|
+
const item = {
|
|
33
|
+
requirementId: req.id,
|
|
34
|
+
requirementDesc: req.description,
|
|
35
|
+
specSection: req.section,
|
|
36
|
+
specFile: specPath,
|
|
37
|
+
coverage: 'none',
|
|
38
|
+
};
|
|
39
|
+
// Feature 시나리오 매핑
|
|
40
|
+
const matchingScenario = findMatchingScenario(req.id, req.description, featureScenarios);
|
|
41
|
+
if (matchingScenario) {
|
|
42
|
+
item.featureScenario = matchingScenario.name;
|
|
43
|
+
item.featureFile = featurePath;
|
|
44
|
+
item.coverage = 'partial';
|
|
45
|
+
}
|
|
46
|
+
// 테스트 매핑
|
|
47
|
+
const matchingTest = findMatchingTest(req.id, req.description, testMappings);
|
|
48
|
+
if (matchingTest) {
|
|
49
|
+
item.testFile = matchingTest.file;
|
|
50
|
+
item.testName = matchingTest.name;
|
|
51
|
+
item.coverage = item.featureScenario ? 'full' : 'partial';
|
|
52
|
+
}
|
|
53
|
+
items.push(item);
|
|
54
|
+
}
|
|
55
|
+
// 요약 계산
|
|
56
|
+
const summary = calculateSummary(items);
|
|
57
|
+
return {
|
|
58
|
+
featureName,
|
|
59
|
+
items,
|
|
60
|
+
summary,
|
|
61
|
+
generatedAt: new Date().toISOString(),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* 매트릭스를 Markdown 테이블로 출력
|
|
66
|
+
*/
|
|
67
|
+
export function formatMatrixAsMarkdown(matrix) {
|
|
68
|
+
let output = `# Requirements Traceability Matrix: ${matrix.featureName}\n\n`;
|
|
69
|
+
output += `Generated: ${matrix.generatedAt}\n\n`;
|
|
70
|
+
// 요약
|
|
71
|
+
output += `## Summary\n\n`;
|
|
72
|
+
output += `| Metric | Value |\n`;
|
|
73
|
+
output += `|--------|-------|\n`;
|
|
74
|
+
output += `| Total Requirements | ${matrix.summary.totalRequirements} |\n`;
|
|
75
|
+
output += `| SPEC Coverage | ${matrix.summary.specCovered}/${matrix.summary.totalRequirements} |\n`;
|
|
76
|
+
output += `| Feature Coverage | ${matrix.summary.featureCovered}/${matrix.summary.totalRequirements} |\n`;
|
|
77
|
+
output += `| Test Coverage | ${matrix.summary.testCovered}/${matrix.summary.totalRequirements} |\n`;
|
|
78
|
+
output += `| **Overall Coverage** | **${matrix.summary.coveragePercent}%** |\n\n`;
|
|
79
|
+
// 매트릭스 테이블
|
|
80
|
+
output += `## Traceability Matrix\n\n`;
|
|
81
|
+
output += `| Requirement | SPEC | Feature | Test | Coverage |\n`;
|
|
82
|
+
output += `|-------------|------|---------|------|----------|\n`;
|
|
83
|
+
for (const item of matrix.items) {
|
|
84
|
+
const reqCell = `${item.requirementId}`;
|
|
85
|
+
const specCell = item.specSection ? `✅ ${item.specSection}` : '❌';
|
|
86
|
+
const featureCell = item.featureScenario ? `✅ ${truncate(item.featureScenario, 30)}` : '❌';
|
|
87
|
+
const testCell = item.testName ? `✅ ${truncate(item.testName, 30)}` : '❌';
|
|
88
|
+
const coverageIcon = getCoverageIcon(item.coverage);
|
|
89
|
+
output += `| ${reqCell} | ${specCell} | ${featureCell} | ${testCell} | ${coverageIcon} |\n`;
|
|
90
|
+
}
|
|
91
|
+
// 미커버리지 항목
|
|
92
|
+
if (matrix.summary.uncoveredRequirements.length > 0) {
|
|
93
|
+
output += `\n## Uncovered Requirements\n\n`;
|
|
94
|
+
output += `The following requirements lack full coverage:\n\n`;
|
|
95
|
+
for (const reqId of matrix.summary.uncoveredRequirements) {
|
|
96
|
+
const item = matrix.items.find(i => i.requirementId === reqId);
|
|
97
|
+
output += `- **${reqId}**: ${item?.requirementDesc || 'Unknown'}\n`;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
// 권장사항
|
|
101
|
+
output += `\n## Recommendations\n\n`;
|
|
102
|
+
if (matrix.summary.coveragePercent >= 100) {
|
|
103
|
+
output += `✅ All requirements are fully covered!\n`;
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
output += `⚠️ Coverage is at ${matrix.summary.coveragePercent}%. Consider:\n`;
|
|
107
|
+
if (matrix.summary.featureCovered < matrix.summary.totalRequirements) {
|
|
108
|
+
output += `- Add Feature scenarios for uncovered requirements\n`;
|
|
109
|
+
}
|
|
110
|
+
if (matrix.summary.testCovered < matrix.summary.totalRequirements) {
|
|
111
|
+
output += `- Add test cases for uncovered requirements\n`;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return output;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* 매트릭스를 HTML로 출력
|
|
118
|
+
*/
|
|
119
|
+
export function formatMatrixAsHtml(matrix) {
|
|
120
|
+
let html = `<!DOCTYPE html>
|
|
121
|
+
<html>
|
|
122
|
+
<head>
|
|
123
|
+
<title>RTM: ${matrix.featureName}</title>
|
|
124
|
+
<style>
|
|
125
|
+
body { font-family: -apple-system, BlinkMacSystemFont, sans-serif; margin: 2rem; }
|
|
126
|
+
table { border-collapse: collapse; width: 100%; }
|
|
127
|
+
th, td { border: 1px solid #ddd; padding: 8px; text-align: left; }
|
|
128
|
+
th { background: #f5f5f5; }
|
|
129
|
+
.full { background: #d4edda; }
|
|
130
|
+
.partial { background: #fff3cd; }
|
|
131
|
+
.none { background: #f8d7da; }
|
|
132
|
+
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1rem 0; }
|
|
133
|
+
.summary-card { padding: 1rem; border-radius: 8px; background: #f5f5f5; }
|
|
134
|
+
.coverage-bar { height: 20px; background: #e0e0e0; border-radius: 4px; overflow: hidden; }
|
|
135
|
+
.coverage-fill { height: 100%; background: #4caf50; }
|
|
136
|
+
</style>
|
|
137
|
+
</head>
|
|
138
|
+
<body>
|
|
139
|
+
<h1>RTM: ${matrix.featureName}</h1>
|
|
140
|
+
<p>Generated: ${matrix.generatedAt}</p>
|
|
141
|
+
|
|
142
|
+
<div class="summary">
|
|
143
|
+
<div class="summary-card">
|
|
144
|
+
<strong>Requirements</strong><br>${matrix.summary.totalRequirements}
|
|
145
|
+
</div>
|
|
146
|
+
<div class="summary-card">
|
|
147
|
+
<strong>Feature Coverage</strong><br>${matrix.summary.featureCovered}/${matrix.summary.totalRequirements}
|
|
148
|
+
</div>
|
|
149
|
+
<div class="summary-card">
|
|
150
|
+
<strong>Test Coverage</strong><br>${matrix.summary.testCovered}/${matrix.summary.totalRequirements}
|
|
151
|
+
</div>
|
|
152
|
+
<div class="summary-card">
|
|
153
|
+
<strong>Overall</strong><br>
|
|
154
|
+
<div class="coverage-bar">
|
|
155
|
+
<div class="coverage-fill" style="width: ${matrix.summary.coveragePercent}%"></div>
|
|
156
|
+
</div>
|
|
157
|
+
${matrix.summary.coveragePercent}%
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
<table>
|
|
162
|
+
<thead>
|
|
163
|
+
<tr>
|
|
164
|
+
<th>Requirement</th>
|
|
165
|
+
<th>Description</th>
|
|
166
|
+
<th>SPEC</th>
|
|
167
|
+
<th>Feature</th>
|
|
168
|
+
<th>Test</th>
|
|
169
|
+
<th>Coverage</th>
|
|
170
|
+
</tr>
|
|
171
|
+
</thead>
|
|
172
|
+
<tbody>
|
|
173
|
+
`;
|
|
174
|
+
for (const item of matrix.items) {
|
|
175
|
+
html += ` <tr class="${item.coverage}">
|
|
176
|
+
<td>${item.requirementId}</td>
|
|
177
|
+
<td>${escapeHtml(truncate(item.requirementDesc, 50))}</td>
|
|
178
|
+
<td>${item.specSection ? '✅' : '❌'}</td>
|
|
179
|
+
<td>${item.featureScenario ? '✅' : '❌'}</td>
|
|
180
|
+
<td>${item.testName ? '✅' : '❌'}</td>
|
|
181
|
+
<td>${getCoverageIcon(item.coverage)}</td>
|
|
182
|
+
</tr>
|
|
183
|
+
`;
|
|
184
|
+
}
|
|
185
|
+
html += ` </tbody>
|
|
186
|
+
</table>
|
|
187
|
+
</body>
|
|
188
|
+
</html>`;
|
|
189
|
+
return html;
|
|
190
|
+
}
|
|
191
|
+
// ============================================
|
|
192
|
+
// Parsing Functions
|
|
193
|
+
// ============================================
|
|
194
|
+
/**
|
|
195
|
+
* SPEC에서 요구사항 추출
|
|
196
|
+
*/
|
|
197
|
+
function extractRequirementsFromSpec(content) {
|
|
198
|
+
const requirements = [];
|
|
199
|
+
// REQ-xxx-xxx 패턴 찾기
|
|
200
|
+
const reqPattern = /\b(REQ-[a-z0-9-]+-\d{3})[:\s]*([^\n]+)/gi;
|
|
201
|
+
let match;
|
|
202
|
+
while ((match = reqPattern.exec(content)) !== null) {
|
|
203
|
+
requirements.push({
|
|
204
|
+
id: match[1],
|
|
205
|
+
description: match[2].trim(),
|
|
206
|
+
section: findSection(content, match.index),
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
// AC 섹션에서도 추출
|
|
210
|
+
const acPattern = /###\s*([^\n]+)\n(?:[\s\S]*?)- \[ \] (.+)/g;
|
|
211
|
+
while ((match = acPattern.exec(content)) !== null) {
|
|
212
|
+
const id = match[1].match(/REQ-[a-z0-9-]+-\d{3}/)?.[0];
|
|
213
|
+
if (id && !requirements.find(r => r.id === id)) {
|
|
214
|
+
requirements.push({
|
|
215
|
+
id,
|
|
216
|
+
description: match[2].trim(),
|
|
217
|
+
section: 'Acceptance Criteria',
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return requirements;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Feature 파일에서 시나리오 추출
|
|
225
|
+
*/
|
|
226
|
+
function extractScenariosFromFeature(content) {
|
|
227
|
+
const scenarios = [];
|
|
228
|
+
const scenarioPattern = /###\s*Scenario\s*\d*[:\s]*([^\n]+)[\s\S]*?(?:\*\*Verification\*\*[:\s]*([^\n]+))?/gi;
|
|
229
|
+
let match;
|
|
230
|
+
while ((match = scenarioPattern.exec(content)) !== null) {
|
|
231
|
+
scenarios.push({
|
|
232
|
+
name: match[1].trim(),
|
|
233
|
+
verification: match[2]?.trim(),
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
return scenarios;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* 테스트 파일에서 매핑 추출
|
|
240
|
+
*/
|
|
241
|
+
function extractTestMappings(testFiles) {
|
|
242
|
+
const mappings = [];
|
|
243
|
+
for (const file of testFiles) {
|
|
244
|
+
const content = readFileSafe(file);
|
|
245
|
+
if (!content)
|
|
246
|
+
continue;
|
|
247
|
+
// describe/it/test 패턴
|
|
248
|
+
const testPattern = /(?:describe|it|test)\s*\(\s*['"`]([^'"`]+)['"`]/g;
|
|
249
|
+
let match;
|
|
250
|
+
while ((match = testPattern.exec(content)) !== null) {
|
|
251
|
+
const name = match[1];
|
|
252
|
+
const reqId = name.match(/REQ-[a-z0-9-]+-\d{3}/)?.[0];
|
|
253
|
+
mappings.push({
|
|
254
|
+
file: path.basename(file),
|
|
255
|
+
name,
|
|
256
|
+
reqId,
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return mappings;
|
|
261
|
+
}
|
|
262
|
+
// ============================================
|
|
263
|
+
// Helper Functions
|
|
264
|
+
// ============================================
|
|
265
|
+
function readFileSafe(filePath) {
|
|
266
|
+
try {
|
|
267
|
+
return fs.readFileSync(filePath, 'utf-8');
|
|
268
|
+
}
|
|
269
|
+
catch {
|
|
270
|
+
return null;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
function findSection(content, index) {
|
|
274
|
+
const before = content.slice(0, index);
|
|
275
|
+
const sectionMatch = before.match(/###\s*([^\n]+)/g);
|
|
276
|
+
return sectionMatch ? sectionMatch[sectionMatch.length - 1].replace(/^###\s*/, '') : 'Unknown';
|
|
277
|
+
}
|
|
278
|
+
function findMatchingScenario(reqId, reqDesc, scenarios) {
|
|
279
|
+
// ID로 매칭
|
|
280
|
+
for (const scenario of scenarios) {
|
|
281
|
+
if (scenario.verification?.includes(reqId)) {
|
|
282
|
+
return scenario;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
// 설명 유사도로 매칭 (간단한 매칭)
|
|
286
|
+
const keywords = reqDesc.toLowerCase().split(/\s+/).filter(w => w.length > 4);
|
|
287
|
+
for (const scenario of scenarios) {
|
|
288
|
+
const scenarioLower = scenario.name.toLowerCase();
|
|
289
|
+
const matchCount = keywords.filter(k => scenarioLower.includes(k)).length;
|
|
290
|
+
if (matchCount >= 2) {
|
|
291
|
+
return scenario;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return null;
|
|
295
|
+
}
|
|
296
|
+
function findMatchingTest(reqId, reqDesc, tests) {
|
|
297
|
+
// ID로 매칭
|
|
298
|
+
for (const test of tests) {
|
|
299
|
+
if (test.reqId === reqId) {
|
|
300
|
+
return test;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
// 설명 유사도로 매칭
|
|
304
|
+
const keywords = reqDesc.toLowerCase().split(/\s+/).filter(w => w.length > 4);
|
|
305
|
+
for (const test of tests) {
|
|
306
|
+
const testLower = test.name.toLowerCase();
|
|
307
|
+
const matchCount = keywords.filter(k => testLower.includes(k)).length;
|
|
308
|
+
if (matchCount >= 2) {
|
|
309
|
+
return test;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
return null;
|
|
313
|
+
}
|
|
314
|
+
function findTestFiles(basePath) {
|
|
315
|
+
const files = [];
|
|
316
|
+
try {
|
|
317
|
+
const entries = fs.readdirSync(basePath, { withFileTypes: true });
|
|
318
|
+
for (const entry of entries) {
|
|
319
|
+
const fullPath = path.join(basePath, entry.name);
|
|
320
|
+
if (entry.isDirectory()) {
|
|
321
|
+
files.push(...findTestFiles(fullPath));
|
|
322
|
+
}
|
|
323
|
+
else if (entry.name.match(/\.(test|spec)\.(ts|js|tsx|jsx)$/)) {
|
|
324
|
+
files.push(fullPath);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
catch {
|
|
329
|
+
// Directory doesn't exist
|
|
330
|
+
}
|
|
331
|
+
return files;
|
|
332
|
+
}
|
|
333
|
+
function findTestFilesForFeature(projectPath, featureName) {
|
|
334
|
+
const possiblePaths = [
|
|
335
|
+
path.join(projectPath, 'src', '__tests__'),
|
|
336
|
+
path.join(projectPath, 'src', 'tests'),
|
|
337
|
+
path.join(projectPath, 'tests'),
|
|
338
|
+
path.join(projectPath, '__tests__'),
|
|
339
|
+
path.join(projectPath, 'test'),
|
|
340
|
+
];
|
|
341
|
+
const files = [];
|
|
342
|
+
for (const basePath of possiblePaths) {
|
|
343
|
+
files.push(...findTestFiles(basePath));
|
|
344
|
+
}
|
|
345
|
+
// Feature 이름과 관련된 파일 필터링
|
|
346
|
+
const normalized = featureName.toLowerCase().replace(/[^a-z0-9]/g, '');
|
|
347
|
+
return files.filter(f => {
|
|
348
|
+
const basename = path.basename(f).toLowerCase().replace(/[^a-z0-9]/g, '');
|
|
349
|
+
return basename.includes(normalized) || normalized.includes(basename.replace(/testspec/g, ''));
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
function calculateSummary(items) {
|
|
353
|
+
const totalRequirements = items.length;
|
|
354
|
+
const specCovered = items.filter(i => i.specSection).length;
|
|
355
|
+
const featureCovered = items.filter(i => i.featureScenario).length;
|
|
356
|
+
const testCovered = items.filter(i => i.testName).length;
|
|
357
|
+
const fullCovered = items.filter(i => i.coverage === 'full').length;
|
|
358
|
+
const coveragePercent = totalRequirements > 0
|
|
359
|
+
? Math.round((fullCovered / totalRequirements) * 100)
|
|
360
|
+
: 0;
|
|
361
|
+
const uncoveredRequirements = items
|
|
362
|
+
.filter(i => i.coverage === 'none')
|
|
363
|
+
.map(i => i.requirementId);
|
|
364
|
+
const partialRequirements = items
|
|
365
|
+
.filter(i => i.coverage === 'partial')
|
|
366
|
+
.map(i => i.requirementId);
|
|
367
|
+
return {
|
|
368
|
+
totalRequirements,
|
|
369
|
+
specCovered,
|
|
370
|
+
featureCovered,
|
|
371
|
+
testCovered,
|
|
372
|
+
coveragePercent,
|
|
373
|
+
uncoveredRequirements,
|
|
374
|
+
partialRequirements,
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
function getCoverageIcon(coverage) {
|
|
378
|
+
switch (coverage) {
|
|
379
|
+
case 'full': return '✅ Full';
|
|
380
|
+
case 'partial': return '⚠️ Partial';
|
|
381
|
+
case 'none': return '❌ None';
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
function truncate(text, maxLength) {
|
|
385
|
+
if (text.length <= maxLength)
|
|
386
|
+
return text;
|
|
387
|
+
return text.slice(0, maxLength - 3) + '...';
|
|
388
|
+
}
|
|
389
|
+
function escapeHtml(text) {
|
|
390
|
+
return text
|
|
391
|
+
.replace(/&/g, '&')
|
|
392
|
+
.replace(/</g, '<')
|
|
393
|
+
.replace(/>/g, '>')
|
|
394
|
+
.replace(/"/g, '"');
|
|
395
|
+
}
|
|
396
|
+
//# sourceMappingURL=traceabilityMatrix.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traceabilityMatrix.js","sourceRoot":"","sources":["../../../src/tools/spec/traceabilityMatrix.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AA8C7B,+CAA+C;AAC/C,iBAAiB;AACjB,+CAA+C;AAE/C;;GAEG;AACH,MAAM,UAAU,0BAA0B,CACxC,WAAmB,EACnB,UAA8B,EAAE;IAEhC,MAAM,EACJ,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,EAC3B,QAAQ,GAAG,sBAAsB,WAAW,KAAK,EACjD,WAAW,GAAG,yBAAyB,WAAW,UAAU,EAC5D,QAAQ,GACT,GAAG,OAAO,CAAC;IAEZ,MAAM,KAAK,GAAgB,EAAE,CAAC;IAC9B,MAAM,QAAQ,GAAa,EAAE,CAAC;IAE9B,aAAa;IACb,MAAM,WAAW,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;IACnE,MAAM,gBAAgB,GAAG,WA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