From b8c4fe7cc2727f63723b80a4eca28ac704c78b7b Mon Sep 17 00:00:00 2001 From: Claude BM Date: Tue, 21 Apr 2026 07:17:12 +0000 Subject: [PATCH] =?UTF-8?q?Fail=20CI=20when=200=20tests=20run=20=E2=80=94?= =?UTF-8?q?=200/0/0=20is=20never=20a=20pass?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If pytest reports 0 passed, 0 failed, 0 skipped, treat it as a failure. Something is wrong if no tests ran at all. Co-Authored-By: Claude Opus 4.6 (1M context) --- ci-runner.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci-runner.sh b/ci-runner.sh index d82d15e..63e4e18 100755 --- a/ci-runner.sh +++ b/ci-runner.sh @@ -92,6 +92,11 @@ if [ "$TEST_EXIT" -ne 0 ] && [ "$PASS_COUNT" = "0" ] && [ "$FAIL_COUNT" = "0" ]; echo "$TEST_OUTPUT" | tail -5 fi +if [ "$PASS_COUNT" = "0" ] && [ "$FAIL_COUNT" = "0" ] && [ "$SKIP_COUNT" = "0" ]; then + OVERALL="fail" + echo "FAIL: 0 tests ran — something is wrong" +fi + echo "Tests: $PASS_COUNT passed, $FAIL_COUNT failed, $SKIP_COUNT skipped, $ERROR_COUNT errors" if [ "$FAIL_COUNT" != "0" ] && [ "$FAIL_COUNT" != "" ]; then