Make API CI fail on skipped bootstrap

This commit is contained in:
Jeppe B
2026-07-08 12:31:40 +02:00
parent 940a3e5e9b
commit 3817a37021
@@ -14,6 +14,10 @@ class ApiTestCase extends TestCase
$skipReason = \api_test_runtime()->skipReason(); $skipReason = \api_test_runtime()->skipReason();
if ($skipReason !== null) { if ($skipReason !== null) {
if (getenv('API_TEST_FAIL_ON_SKIP') === '1') {
throw new \RuntimeException($skipReason);
}
$this->markTestSkipped($skipReason); $this->markTestSkipped($skipReason);
} }