Skip to content

Commit

Permalink
MAGETWO-69235: Do not di:compile tests/ folder #9660
Browse files Browse the repository at this point in the history
  • Loading branch information
ishakhsuvarov authored May 17, 2017
2 parents 537685d + bfa4583 commit 9dc4c95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup/src/Magento/Setup/Console/Command/DiCompileCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ private function getExcludedModulePaths(array $modulePaths)

$excludedModulePaths = [
'#^(?:' . join('|', $basePathsRegExps) . ')/Test#',
'#^(?:' . join('|', $basePathsRegExps) . ')/tests#',
];
return $excludedModulePaths;
}
Expand All @@ -241,6 +242,7 @@ private function getExcludedLibraryPaths(array $libraryPaths)
{
$excludedLibraryPaths = [
'#^(?:' . join('|', $libraryPaths) . ')/([\\w]+/)?Test#',
'#^(?:' . join('|', $libraryPaths) . ')/([\\w]+/)?tests#',
];
return $excludedLibraryPaths;
}
Expand Down

0 comments on commit 9dc4c95

Please sign in to comment.