From 3817a37021bc6d254eb3f66090d356abca0ff778 Mon Sep 17 00:00:00 2001 From: Jeppe B <2jepp9350@gmail.com> Date: Wed, 8 Jul 2026 12:31:40 +0200 Subject: [PATCH] Make API CI fail on skipped bootstrap --- services/nginx/app/tests/Support/Api/ApiTestCase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/nginx/app/tests/Support/Api/ApiTestCase.php b/services/nginx/app/tests/Support/Api/ApiTestCase.php index 113ff6d2..a40e9c5e 100644 --- a/services/nginx/app/tests/Support/Api/ApiTestCase.php +++ b/services/nginx/app/tests/Support/Api/ApiTestCase.php @@ -14,6 +14,10 @@ class ApiTestCase extends TestCase $skipReason = \api_test_runtime()->skipReason(); if ($skipReason !== null) { + if (getenv('API_TEST_FAIL_ON_SKIP') === '1') { + throw new \RuntimeException($skipReason); + } + $this->markTestSkipped($skipReason); }