@ihyeon/error-to-test 0.1.9 → 0.1.10
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 +3 -0
- package/package.json +1 -1
package/README.ko.md
CHANGED
|
@@ -36,7 +36,7 @@ node bin/error-to-test.mjs analyze --input examples/errors.json --profile exampl
|
|
|
36
36
|
|
|
37
37
|
결과는 `analysis.json`, `report.md`, `flows/error-to-test.md`, `cases/error-to-test.json`, `provenance.json`입니다. 빈 조회 결과에는 suite를 만들지 않습니다. 출력 폴더는 매번 새 경로를 지정해야 합니다.
|
|
38
38
|
|
|
39
|
-
`report.md
|
|
39
|
+
`report.md` 상단에서 TC 초안 수와 추가 정보가 필요한 TC 수를 확인할 수 있습니다. 초안도 실행 전에 검토해야 합니다. 오류 묶음·수집 건수와 함께 대표 로그의 오류·React 컴포넌트 스택, 재현 방법·사전 조건·테스트 단계·부족한 정보도 표시합니다. 같은 스택은 한 번만 표시하며, 전체 로그의 모든 스택을 나열하지는 않습니다. 재현 단계와 정상 기대 결과, 명시적인 assertion이 없으면 질문이 있는 TC를 생성합니다. 직접 입력한 보고서에는 실제 발생 시각·사용자 수를 만들어 넣지 않습니다. 수집 건수도 실제 발생률을 뜻하지 않으며, 원본 내보내기의 일부 데이터 표시를 유지합니다.
|
|
40
40
|
|
|
41
41
|
기본 suite는 검토 질문으로 실행이 차단됩니다. TC와 프로필을 확인한 뒤 다른 출력 폴더에 `--reviewed`로 다시 생성하면 검토 질문만 제거됩니다. 나머지 질문은 그대로 실행을 차단합니다. 프로필의 `setupConfirmed`는 준비 조건을 확인했다는 표시이며, 계정·데이터를 자동으로 준비하는 기능은 아닙니다.
|
|
42
42
|
|
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ Supported web steps match Flow QA: `open`, `click`, `fill`, `act`, `assertVisibl
|
|
|
72
72
|
Generated files (Flow QA source is limited to 128 KB; suite JSON to 512 KiB):
|
|
73
73
|
|
|
74
74
|
- `analysis.json`: coverage, ranked groups, safe representative evidence, full-source context checks, and TC candidates.
|
|
75
|
-
- `report.md`: human-readable analysis, unique error and React component stacks from representative evidence, reported reproduction, preconditions, proposed test steps, and missing context.
|
|
75
|
+
- `report.md`: human-readable analysis with draft and needs-context TC totals, unique error and React component stacks from representative evidence, reported reproduction, preconditions, proposed test steps, and missing context.
|
|
76
76
|
- `flows/error-to-test.md`: observed facts, requirements, steps, and questions.
|
|
77
77
|
- `cases/error-to-test.json`: Flow QA `suite-1` (omitted when no records match).
|
|
78
78
|
- `provenance.json`: source/profile/analysis/report/flow/suite hashes and event → group → case mappings.
|
package/dist/artifacts.js
CHANGED
|
@@ -11,8 +11,11 @@ function literal(value) {
|
|
|
11
11
|
return `${fence}text\n${safe}\n${fence}`;
|
|
12
12
|
}
|
|
13
13
|
export function renderReport(analysis) {
|
|
14
|
+
const draftCandidates = analysis.candidates.filter(candidate => candidate.state === 'draft').length;
|
|
15
|
+
const needsContextCandidates = analysis.candidates.filter(candidate => candidate.state === 'needs-context').length;
|
|
14
16
|
const lines = ['# Error to Test analysis', '',
|
|
15
17
|
`Groups: ${analysis.groups.length} · TC candidates: ${analysis.candidates.length}`,
|
|
18
|
+
`Draft TC candidates: ${draftCandidates} · Need context: ${needsContextCandidates}`,
|
|
16
19
|
`Input: ${analysis.coverage.kind} · Count meaning: ${analysis.coverage.frequency}`,
|
|
17
20
|
`Partial export: ${analysis.coverage.partial ? 'yes' : 'no'} · Retention coverage: unknown`,
|
|
18
21
|
`Duplicate records: ${analysis.coverage.duplicates} · Filtered records: ${analysis.coverage.filtered}`, '',
|
package/package.json
CHANGED