Skip to content

Commit

Permalink
Do not di:compile tests/ folder
Browse files Browse the repository at this point in the history
  • Loading branch information
kassner authored Apr 12, 2017
1 parent 2552aa2 commit eaccf65
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 eaccf65

Please sign in to comment.