From a7be2c7377d92ca67918ada7f5ee8aa37cce1adb Mon Sep 17 00:00:00 2001 From: hided62 Date: Mon, 24 Aug 2026 20:27:47 +0000 Subject: [PATCH] =?UTF-8?q?test:=20=EC=A1=B0=EA=B1=B4=EB=B6=80=20=ED=86=B5?= =?UTF-8?q?=ED=95=A9=20=EA=B2=80=EC=A6=9D=EC=9D=98=20=EB=B6=80=EB=B6=84=20?= =?UTF-8?q?=EC=83=9D=EB=9E=B5=EC=9D=84=20=EC=B0=A8=EB=8B=A8=ED=95=9C?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/run-conditional-integration.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/run-conditional-integration.sh b/tools/run-conditional-integration.sh index 82045d24..c461fa31 100755 --- a/tools/run-conditional-integration.sh +++ b/tools/run-conditional-integration.sh @@ -477,21 +477,21 @@ record_vitest_result() { import fs from "node:fs"; const result = JSON.parse(fs.readFileSync(process.argv[1], "utf8")); const files = Array.isArray(result.testResults) ? result.testResults : []; - const isSkipped = ({ assertionResults = [], status }) => - status === "pending" || - (assertionResults.length > 0 && - assertionResults.every(({ status: assertionStatus }) => - assertionStatus === "pending" || assertionStatus === "todo" - )); - const skipped = files.filter(isSkipped).length; + const skippedStatuses = new Set(["disabled", "pending", "skipped", "todo"]); + const hasSkippedAssertion = ({ assertionResults = [], status }) => + skippedStatuses.has(status) || + assertionResults.some(({ status: assertionStatus }) => skippedStatuses.has(assertionStatus)); + const skipped = files.filter(hasSkippedAssertion).length; const failed = files.filter(({ status }) => status === "failed").length; - const passed = files.length - skipped - failed; + const passed = files.filter( + (file) => file.status !== "failed" && !hasSkippedAssertion(file) + ).length; process.stdout.write(`${passed}\t${skipped}\t${failed}`); ' "$result_file") printf '%s\t%s\n' "$label" "$counts" >>"$summary_file" skipped=$(printf '%s' "$counts" | cut -f2) if [ "$skipped" -ne 0 ]; then - echo "$label left $skipped integration test file(s) skipped" >&2 + echo "$label left $skipped integration test file(s) with skipped assertion(s)" >&2 return 1 fi }