Skip to content

EspoCRM – Open Source CRM Application

Integration test no build exception

Yuriicd3f845acb15
diff --git a/tests/integration/Core/Utils.php b/tests/integration/Core/Utils.php
index 0298c58f58..3354c88162 100644
--- a/tests/integration/Core/Utils.php
+++ b/tests/integration/Core/Utils.php
@@ -29,6 +29,8 @@
namespace tests\integration\Core;
+use RuntimeException;
+
class Utils
{
/**
@@ -43,6 +45,10 @@ class Utils
$buildDir = dir($path);
+ if (!$buildDir) {
+ throw new RuntimeException("No test build. Run `grunt test`.");
+ }
+
while ($folderName = $buildDir->read()) {
if ($folderName === '.'|| $folderName === '..' || empty($folderName)) {
continue;