diff --git a/App/Lib/Codeception.php b/App/Lib/Codeception.php index 76971be..9fa4f55 100644 --- a/App/Lib/Codeception.php +++ b/App/Lib/Codeception.php @@ -140,7 +140,8 @@ public function loadTests() foreach ($files as $file) { if (! in_array($file->getFilename(), $this->config['ignore']) - && $file->isFile()) + && $file->isFile() + && preg_match('/Cept.php|Cest.php|Test.php/', $file->getFilename())) { // Declare a new test and add it to the list. $test = new Test();