Make API CI fail on skipped bootstrap
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user