mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(qa): count skipped scenarios in suite summaries (#113696)
Co-authored-by: Peter Steinberger <steipete@golden-gate.local>
This commit is contained in:
committed by
GitHub
parent
2cf6b50614
commit
47601cf5b4
@@ -22,6 +22,7 @@ export type QaSuiteSummaryJson = {
|
||||
total: number;
|
||||
passed: number;
|
||||
failed: number;
|
||||
skipped: number;
|
||||
};
|
||||
metrics?: {
|
||||
wallMs: number;
|
||||
|
||||
@@ -134,6 +134,25 @@ describe("buildQaSuiteSummaryJson", () => {
|
||||
total: 2,
|
||||
passed: 1,
|
||||
failed: 1,
|
||||
skipped: 0,
|
||||
});
|
||||
});
|
||||
|
||||
it("includes skipped scenarios in the canonical summary counts", () => {
|
||||
const json = buildQaSuiteSummaryJson({
|
||||
...baseParams,
|
||||
scenarios: [
|
||||
...baseParams.scenarios,
|
||||
{ name: "Scenario C", status: "skip" as const, steps: [] },
|
||||
{ name: "Scenario D", status: "skip" as const, steps: [] },
|
||||
],
|
||||
});
|
||||
|
||||
expect(json.counts).toEqual({
|
||||
total: 4,
|
||||
passed: 1,
|
||||
failed: 1,
|
||||
skipped: 2,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -723,6 +723,7 @@ export function buildQaSuiteSummaryJson(params: QaSuiteSummaryJsonParams): QaSui
|
||||
total: params.scenarios.length,
|
||||
passed: params.scenarios.filter((scenario) => scenario.status === "pass").length,
|
||||
failed: countQaSuiteFailedScenarios(params.scenarios),
|
||||
skipped: params.scenarios.filter((scenario) => scenario.status === "skip").length,
|
||||
},
|
||||
...(params.metrics ? { metrics: params.metrics } : {}),
|
||||
...(params.evidence ? { evidence: params.evidence } : {}),
|
||||
|
||||
Reference in New Issue
Block a user