Skip to content

Commit 7b2647c

Browse files
authored
Do not di:compile tests/ folder
1 parent 84675bb commit 7b2647c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup/src/Magento/Setup/Console/Command/DiCompileCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ private function getExcludedModulePaths(array $modulePaths)
227227

228228
$excludedModulePaths = [
229229
'#^(?:' . join('|', $basePathsRegExps) . ')/Test#',
230+
'#^(?:' . join('|', $basePathsRegExps) . ')/tests#',
230231
];
231232
return $excludedModulePaths;
232233
}
@@ -241,6 +242,7 @@ private function getExcludedLibraryPaths(array $libraryPaths)
241242
{
242243
$excludedLibraryPaths = [
243244
'#^(?:' . join('|', $libraryPaths) . ')/([\\w]+/)?Test#',
245+
'#^(?:' . join('|', $libraryPaths) . ')/([\\w]+/)?tests#',
244246
];
245247
return $excludedLibraryPaths;
246248
}

0 commit comments

Comments
 (0)