You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$exclude = $this->config['ignore'];
/** * @param \SplFileInfo $file * @param mixed $key * @param \RecursiveCallbackFilterIterator $iterator * @return bool True if you need to recurse or if the item is acceptable */$filter = function ($file, $key, $iterator) use ($exclude)
{
if ($iterator->hasChildren() && !in_array($file->getFilename(), $exclude))
{
returntrue;
}
return$file->isFile();
};
$files = new \RecursiveIteratorIterator(
new \RecursiveCallbackFilterIterator(
new \RecursiveDirectoryIterator(
"{$this->config['paths']['tests']}/{$type}/",
\FilesystemIterator::SKIP_DOTS
),
$filter
),
\RecursiveIteratorIterator::SELF_FIRST
);
Then this part is not required, as will be filtered in iterator:
if (! in_array($file->getFilename(), $this->config['ignore']) && $file->isFile()) {
Now you can include directories in codeception.php ignore as well:
Is there a way to ignore some folders in project, like pageObject and stepObject folders?
The text was updated successfully, but these errors were encountered: