Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions tests/apps.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ function getSubclasses($parentClassName) {
continue;
}
$dir = OC_App::getAppPath($app);
if (\is_dir($dir . '/tests')) {
loadDirectory($dir . '/tests');

// only consider the "built-in" apps found in the apps directory
// we do not want to automatically run unit tests for extra apps
// that might be in a secondary apps dir like apps-external
if (\basename(\dirname($dir)) === "apps") {
if (\is_dir($dir . '/tests')) {
loadDirectory($dir . '/tests');
}
}
}