@ihyeon/flow-qa 0.11.0 → 0.12.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.ko.md +2 -0
- package/README.md +2 -0
- package/dist/src/cli.js +18 -8
- package/dist/src/report.js +2 -1
- package/docs/releases.md +4 -0
- package/package.json +1 -1
package/README.ko.md
CHANGED
|
@@ -72,6 +72,8 @@ flow-qa plan flows/my-flow.md --workspace my-qa
|
|
|
72
72
|
|
|
73
73
|
CLI에서는 `flow-qa run cases/task-flow.json --target demo --case TC-001 --case TC-003`처럼 ID를 반복합니다. `--case`를 생략하면 전체를 실행합니다. 부분 실행의 통과는 선택한 케이스에만 해당하며, 보고서와 비교 화면에도 선택 범위를 표시합니다. 자세한 동작은 [UI 가이드](docs/ui.md#run-selected-cases)를 참고하세요.
|
|
74
74
|
|
|
75
|
+
재실행 목록은 보고서에 저장된 종료 시각과 시작 시각 순으로 표시합니다. `flow-qa rerun <실행 폴더> --dry-run`으로 등록된 대상과 실패 케이스 ID를 미리 볼 수 있습니다. 미리보기에서는 대상 요청과 새 보고서 생성이 발생하지 않습니다.
|
|
76
|
+
|
|
75
77
|
`0.5.0`부터 상세 보고서에서 **실패·오류 케이스 준비**를 누르면 실행 당시와 같은 저장된 케이스를 불러와 `실패`와 `실행 오류`만 선택합니다. 준비 후 케이스와 대상을 다시 검토하고 직접 실행하세요. 케이스·원본 파일이 없거나 바뀌었으면 준비를 중단하며, 실행 대상이 없거나 바뀌었으면 다시 선택해야 합니다. 자세한 동작은 [실패 케이스 준비](docs/ui.md#prepare-failed-cases)를 참고하세요.
|
|
76
78
|
|
|
77
79
|
준비한 케이스 정의·대상·선택 케이스 그대로 실행하면 새 보고서에 원본 실행 ID가 남습니다. 상세 보고서에서 원본을 열거나 두 결과를 바로 비교할 수 있습니다. 이 조건을 변경해 실행하면 독립 실행으로 저장합니다. 원본 보고서가 삭제돼도 새 보고서는 읽을 수 있으며 원본이 없다는 상태를 표시합니다.
|
package/README.md
CHANGED
|
@@ -80,6 +80,8 @@ From an original report, **Find reruns of this run** shows directly linked runs
|
|
|
80
80
|
|
|
81
81
|
In the CLI, `flow-qa reruns .flowqa/runs/<original-run-id> --workspace my-qa` lists direct reruns with their status and saved directory. Pass a listed directory to `flow-qa report` or compare it with the original using `flow-qa compare` and the same `--workspace`. The command checks the saved reports and skips incomplete entries.
|
|
82
82
|
|
|
83
|
+
Direct reruns are ordered by their saved finish and start times. Add `--dry-run` to `flow-qa rerun <run-directory>` to print the registered target and failing case IDs before execution. Previewing makes no target requests and creates no new report.
|
|
84
|
+
|
|
83
85
|
Run `flow-qa rerun .flowqa/runs/<original-run-id> --workspace my-qa` to execute only its failed and errored cases against the original registered target. The new report records the original run ID, so `reruns` and `compare` can show what changed. A report with no failed or errored cases prints a message and exits successfully without creating another run. If the saved cases, source flow, or target changed, the command stops before starting a run. Each case must establish its own starting state.
|
|
84
86
|
|
|
85
87
|
From `0.8.0`, **Detailed report** supports case/error-text search, status filters, and **Failed/error only**. Use **At least 2 attempts** (0.8.7) to see only cases with multiple recorded attempts. Counts distinguish displayed matches from all recorded cases. Markdown/JSON downloads and failed/error preparation retain the full report scope. To save just the filtered IDs in the displayed order, choose **Download visible case IDs** (0.8.6). See [report case exploration](docs/ui.md#explore-cases-in-a-report).
|
package/dist/src/cli.js
CHANGED
|
@@ -39,7 +39,7 @@ Usage: flow-qa <command> [arguments] [options]
|
|
|
39
39
|
agent-review <handoff-dir> <result.json>
|
|
40
40
|
Check agent-supplied findings and evidence references
|
|
41
41
|
report <run-directory> View a saved QA report
|
|
42
|
-
rerun <run-directory>
|
|
42
|
+
rerun <run-directory> [--dry-run] Rerun failed/error cases from a saved report
|
|
43
43
|
reruns <run-directory> List runs prepared from a saved report
|
|
44
44
|
compare <run-a> <run-b> Compare case results and authored steps
|
|
45
45
|
ui [--demo] [--port 4310] Start the local QA UI
|
|
@@ -72,7 +72,7 @@ Local example: flow-qa ui --demo
|
|
|
72
72
|
agent-review <handoff-dir> <result.json>
|
|
73
73
|
에이전트 관찰 결과와 증거 파일 참조 검사
|
|
74
74
|
report <run-directory> 저장된 QA 리포트 보기
|
|
75
|
-
rerun <run-directory>
|
|
75
|
+
rerun <run-directory> [--dry-run] 저장된 실행의 실패·오류 케이스 재실행
|
|
76
76
|
reruns <run-directory> 저장된 리포트에서 시작한 재실행 찾기
|
|
77
77
|
compare <run-a> <run-b> 케이스 결과와 원본 단계 비교
|
|
78
78
|
ui [--demo] [--port 4310] 로컬 QA 화면 실행
|
|
@@ -225,7 +225,7 @@ export async function main(args) {
|
|
|
225
225
|
case: { type: 'string', multiple: true },
|
|
226
226
|
platform: { type: 'string' }, 'bundle-id': { type: 'string' }, device: { type: 'string' },
|
|
227
227
|
'prompt-only': { type: 'boolean' }, help: { type: 'boolean', short: 'h' },
|
|
228
|
-
demo: { type: 'boolean' }, port: { type: 'string' }, 'with-deps': { type: 'boolean' }, lang: { type: 'string' },
|
|
228
|
+
'dry-run': { type: 'boolean' }, demo: { type: 'boolean' }, port: { type: 'string' }, 'with-deps': { type: 'boolean' }, lang: { type: 'string' },
|
|
229
229
|
} });
|
|
230
230
|
if (values.lang !== undefined) {
|
|
231
231
|
if (values.lang !== 'en' && values.lang !== 'ko')
|
|
@@ -242,7 +242,7 @@ export async function main(args) {
|
|
|
242
242
|
(values['bundle-id'] !== undefined || values.device !== undefined) && command !== 'connect') {
|
|
243
243
|
throw new Error(localized(locale, 'Platform and device options are only supported by connect and plan. See --help.', '플랫폼·기기 옵션은 connect와 plan에서만 사용할 수 있습니다. --help를 참고하세요.'));
|
|
244
244
|
}
|
|
245
|
-
if (values.case !== undefined && command !== 'run' && command !== 'agent-handoff' || values.demo && command !== 'ui' || values.port && command !== 'ui' ||
|
|
245
|
+
if (values['dry-run'] && command !== 'rerun' || values.case !== undefined && command !== 'run' && command !== 'agent-handoff' || values.demo && command !== 'ui' || values.port && command !== 'ui' ||
|
|
246
246
|
values['with-deps'] && (command !== 'browser' || arg !== 'install'))
|
|
247
247
|
throw new Error(localized(locale, 'This option is not supported for the command. See --help.', '이 명령에서 사용할 수 없는 옵션입니다. --help를 참고하세요.'));
|
|
248
248
|
if (command === 'ui') {
|
|
@@ -454,12 +454,19 @@ export async function main(args) {
|
|
|
454
454
|
}
|
|
455
455
|
const config = configSchema.parse(JSON.parse(await readSafeFile(canonicalWorkspace, 'flowqa.config.json', 256 * 1024)));
|
|
456
456
|
const prepared = prepareRerunSelection(previous, suite, config);
|
|
457
|
+
if (!prepared.targetMatches && (prepared.caseIds.length || values['dry-run'])) {
|
|
458
|
+
throw new Error(localized(locale, 'The selected target changed. Review it again.', '실행 대상 설정이 변경됐습니다. 다시 확인하세요.'));
|
|
459
|
+
}
|
|
460
|
+
if (values['dry-run']) {
|
|
461
|
+
console.log(localized(locale, `Target: ${prepared.targetName}`, `실행 대상: ${prepared.targetName}`));
|
|
462
|
+
}
|
|
457
463
|
if (prepared.caseIds.length === 0) {
|
|
458
464
|
console.log(localizeProductMessage('No failed or errored cases are available to rerun.', locale));
|
|
459
465
|
return;
|
|
460
466
|
}
|
|
461
|
-
if (
|
|
462
|
-
|
|
467
|
+
if (values['dry-run']) {
|
|
468
|
+
console.log(localized(locale, `Cases: ${prepared.caseIds.join(', ')}`, `케이스: ${prepared.caseIds.join(', ')}`));
|
|
469
|
+
return;
|
|
463
470
|
}
|
|
464
471
|
await executeRun({ workspace: canonicalWorkspace, suite, config, targetName: prepared.targetName,
|
|
465
472
|
caseIds: prepared.caseIds, parentRunId: originalId }, locale, true);
|
|
@@ -484,11 +491,14 @@ export async function main(args) {
|
|
|
484
491
|
const report = await readArchivedRun(root, id);
|
|
485
492
|
if (report?.parentRunId !== originalId)
|
|
486
493
|
continue;
|
|
487
|
-
|
|
494
|
+
const startTime = Date.parse(report.startedAt);
|
|
495
|
+
const finishTime = Date.parse(report.finishedAt);
|
|
496
|
+
const started = Number.isFinite(startTime) ? startTime : -Infinity;
|
|
497
|
+
matches.push({ id, status: report.status, started, finished: Number.isFinite(finishTime) ? finishTime : started });
|
|
488
498
|
}
|
|
489
499
|
catch { /* Incomplete or unsafe saved run. */ }
|
|
490
500
|
}
|
|
491
|
-
matches.sort((a, b) => b.
|
|
501
|
+
matches.sort((a, b) => b.finished - a.finished || b.started - a.started || a.id.localeCompare(b.id));
|
|
492
502
|
if (!matches.length) {
|
|
493
503
|
console.log(localized(locale, 'No runs were prepared from this report.', '이 리포트에서 시작한 재실행이 없습니다.'));
|
|
494
504
|
return;
|
package/dist/src/report.js
CHANGED
|
@@ -16,7 +16,7 @@ const archiveEnvelopeSchema = z.object({
|
|
|
16
16
|
z.object({ name: z.string(), url: z.string() }),
|
|
17
17
|
z.object({ name: z.string(), kind: z.literal('mobile'), platform: z.enum(['ios', 'android']), bundleId: z.string(), device: z.string() }),
|
|
18
18
|
]),
|
|
19
|
-
startedAt: z.string(), finishedAt: z.string(), status: z.enum(['passed', 'failed', 'blocked', 'error', 'interrupted']),
|
|
19
|
+
startedAt: z.string().default(''), finishedAt: z.string().default(''), status: z.enum(['passed', 'failed', 'blocked', 'error', 'interrupted']),
|
|
20
20
|
cases: z.array(z.object({ id: z.string(), title: z.string(), status: z.enum(['passed', 'failed', 'flaky', 'blocked', 'skipped', 'error']),
|
|
21
21
|
expected: z.array(z.string()), definedSteps: z.array(z.object({ type: z.string() })).optional(),
|
|
22
22
|
attempts: z.array(z.unknown()), reason: z.string().optional() }).passthrough()),
|
|
@@ -39,6 +39,7 @@ const savedAttemptSchema = z.object({
|
|
|
39
39
|
});
|
|
40
40
|
const savedReportSchema = z.object({
|
|
41
41
|
...archiveEnvelopeSchema.shape,
|
|
42
|
+
startedAt: z.string(), finishedAt: z.string(),
|
|
42
43
|
suiteHash: z.string().regex(/^[a-f0-9]{64}$/),
|
|
43
44
|
cases: z.array(z.object({
|
|
44
45
|
id: idSchema, title: z.string(), status: z.enum(['passed', 'failed', 'flaky', 'blocked', 'skipped', 'error']),
|
package/docs/releases.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Releases and verification
|
|
2
2
|
|
|
3
|
+
## 0.12.0 — preview failed cases and order reruns by execution time
|
|
4
|
+
|
|
5
|
+
`flow-qa rerun <saved-run> --dry-run` verifies the saved suite and target, then prints the target name and the failed or errored case IDs. The preview makes no target requests and writes no reports. `reruns` orders children by recorded finish time, start time and run ID. Undated legacy reports remain in the list.
|
|
6
|
+
|
|
3
7
|
## 0.11.0 — rerun failed cases from the CLI
|
|
4
8
|
|
|
5
9
|
`flow-qa rerun <saved-run> --workspace <workspace>` runs the failed or errored cases from an original report against its unchanged registered target. It shares the local UI's checks for the saved suite, selected cases, and target identity. The new report retains `parentRunId`, and `reruns` lists it. A report without failed or errored cases exits successfully with an informational message and creates no run. Changed definitions, source flows, targets, and unsafe saved paths stop before execution.
|