diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 81bb930de658d..1fb54344d4978 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -23,13 +23,16 @@ \OC::$composerAutoloader->addPsr4('Tests\\', OC::$SERVERROOT . '/tests/', true); -// load all apps -$appManager = Server::get(IAppManager::class); -foreach (new \DirectoryIterator(__DIR__ . '/../apps/') as $file) { - if ($file->isDot()) { - continue; +$dontLoadApps = getenv('TEST_DONT_LOAD_APPS'); +if (!$dontLoadApps) { + // load all apps + $appManager = Server::get(IAppManager::class); + foreach (new \DirectoryIterator(__DIR__ . '/../apps/') as $file) { + if ($file->isDot()) { + continue; + } + $appManager->loadApp($file->getFilename()); } - $appManager->loadApp($file->getFilename()); } OC_Hook::clear();