@ihyeon/error-to-test 0.1.1 → 0.1.2
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.ko.md +1 -1
- package/README.md +1 -1
- package/dist/artifacts.js +1 -1
- package/package.json +45 -10
package/README.ko.md
CHANGED
|
@@ -26,7 +26,7 @@ node bin/error-to-test.mjs analyze --input examples/errors.json --profile exampl
|
|
|
26
26
|
|
|
27
27
|
결과는 `analysis.json`, `report.md`, `flows/error-to-test.md`, `cases/error-to-test.json`, `provenance.json`입니다. 빈 조회 결과에는 suite를 만들지 않습니다. 출력 폴더는 매번 새 경로를 지정해야 합니다.
|
|
28
28
|
|
|
29
|
-
`report.md`에서 오류 묶음·수집
|
|
29
|
+
`report.md`에서 오류 묶음·수집 건수와 함께 재현 방법·사전 조건·테스트 단계·부족한 정보를 확인하세요. 재현 단계와 정상 기대 결과, 명시적인 assertion이 없으면 질문이 있는 TC를 생성합니다. 직접 입력한 보고서에는 실제 발생 시각·사용자 수를 만들어 넣지 않습니다. 수집 건수도 실제 발생률을 뜻하지 않으며, 원본 내보내기의 일부 데이터 표시를 유지합니다.
|
|
30
30
|
|
|
31
31
|
기본 suite는 검토 질문으로 실행이 차단됩니다. TC와 프로필을 확인한 뒤 다른 출력 폴더에 `--reviewed`로 다시 생성하면 검토 질문만 제거됩니다. 나머지 질문은 그대로 실행을 차단합니다. 프로필의 `setupConfirmed`는 준비 조건을 확인했다는 표시이며, 계정·데이터를 자동으로 준비하는 기능은 아닙니다.
|
|
32
32
|
|
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ Supported web steps match Flow QA: `open`, `click`, `fill`, `act`, `assertVisibl
|
|
|
60
60
|
Generated files (Flow QA source is limited to 128 KB; suite JSON to 512 KiB):
|
|
61
61
|
|
|
62
62
|
- `analysis.json`: coverage, ranked groups, safe representative evidence, full-source context checks, and TC candidates.
|
|
63
|
-
- `report.md`: human-readable analysis and missing context.
|
|
63
|
+
- `report.md`: human-readable analysis, reported reproduction, preconditions, proposed test steps, and missing context.
|
|
64
64
|
- `flows/error-to-test.md`: observed facts, requirements, steps, and questions.
|
|
65
65
|
- `cases/error-to-test.json`: Flow QA `suite-1` (omitted when no records match).
|
|
66
66
|
- `provenance.json`: source/profile/analysis/report/flow/suite hashes and event → group → case mappings.
|
package/dist/artifacts.js
CHANGED
|
@@ -25,7 +25,7 @@ export function renderReport(analysis) {
|
|
|
25
25
|
for (const group of analysis.groups) {
|
|
26
26
|
lines.push(`## ${group.id}`, '', `Records: ${group.count} · Observed page views: ${group.viewCount} · Last observed: ${group.lastOccurredAt ?? 'unknown'}`, '', literal(`${group.project} / ${group.environment} / ${group.release} / ${group.runtime}\n${group.type} ${group.pagePath}\n${group.message}`), '');
|
|
27
27
|
for (const candidate of analysis.candidates.filter(item => item.groupId === group.id)) {
|
|
28
|
-
lines.push(`### ${candidate.id} · ${candidate.state}`, '', literal(candidate.title), '', 'Observed facts:', literal(candidate.facts.join('\n')), '', 'Expected behavior:', literal(candidate.expected ? `${candidate.expected.text}\nSource: ${candidate.expected.source}` : 'Unresolved'), '', 'Questions:', literal(candidate.questions.join('\n') || 'No context questions. Review is still required before execution.'), '');
|
|
28
|
+
lines.push(`### ${candidate.id} · ${candidate.state}`, '', literal(candidate.title), '', 'Observed facts:', literal(candidate.facts.join('\n')), '', 'Reported reproduction:', literal(candidate.reproduction.join('\n') || 'Not supplied'), '', 'Preconditions:', literal(candidate.preconditions.join('\n') || 'Not supplied'), '', 'Proposed test steps:', literal(candidate.steps.length ? JSON.stringify(candidate.steps, null, 2) : 'Not supplied'), '', 'Expected behavior:', literal(candidate.expected ? `${candidate.expected.text}\nSource: ${candidate.expected.source}` : 'Unresolved'), '', 'Questions:', literal(candidate.questions.join('\n') || 'No context questions. Review is still required before execution.'), '');
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
return `${lines.join('\n')}\n`;
|
package/package.json
CHANGED
|
@@ -1,19 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ihyeon/error-to-test",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Turn captured browser errors and pasted error reports into traceable regression test candidates.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Hyeonse Im",
|
|
7
|
-
"repository": {
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/hyeonse-swing/error-to-test.git"
|
|
10
|
+
},
|
|
8
11
|
"homepage": "https://github.com/hyeonse-swing/error-to-test#readme",
|
|
9
|
-
"bugs": {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/hyeonse-swing/error-to-test/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"browser-errors",
|
|
17
|
+
"regression-testing",
|
|
18
|
+
"test-cases",
|
|
19
|
+
"qa",
|
|
20
|
+
"cli",
|
|
21
|
+
"flow-qa"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public",
|
|
25
|
+
"tag": "latest",
|
|
26
|
+
"registry": "https://registry.npmjs.org"
|
|
27
|
+
},
|
|
12
28
|
"type": "module",
|
|
13
|
-
"engines": {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=24.8.0"
|
|
31
|
+
},
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"import": "./dist/index.js"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"bin": {
|
|
39
|
+
"error-to-test": "bin/error-to-test.mjs"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"bin/error-to-test.mjs",
|
|
44
|
+
"docs",
|
|
45
|
+
"examples",
|
|
46
|
+
"README.ko.md",
|
|
47
|
+
"LICENSE"
|
|
48
|
+
],
|
|
17
49
|
"scripts": {
|
|
18
50
|
"build": "tsc",
|
|
19
51
|
"typecheck": "tsc --noEmit",
|
|
@@ -24,5 +56,8 @@
|
|
|
24
56
|
"smoke:flowqa": "node scripts/flowqa-smoke.ts",
|
|
25
57
|
"demo": "node bin/dev.mjs analyze --input examples/errors.json --profile examples/profile.json --out .error-to-test/demo"
|
|
26
58
|
},
|
|
27
|
-
"devDependencies": {
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@types/node": "^24.0.0",
|
|
61
|
+
"typescript": "5.9.3"
|
|
62
|
+
}
|
|
28
63
|
}
|