From 654da3596659bf7249789d2573a8eef269e5bbcd Mon Sep 17 00:00:00 2001 From: xVismutx Date: Wed, 20 May 2015 14:29:34 +0400 Subject: [PATCH] Parsing only Tests, not all files Check that files are test files --- App/Lib/Codeception.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();