From be95c5189db3fbe82685d848aa001cf09ba4fd35 Mon Sep 17 00:00:00 2001 From: s-nakajima Date: Fri, 24 Feb 2023 19:48:54 +0900 Subject: [PATCH] test: debug --- .github/workflows/tests.yml | 4 ++-- Test/Case/AllInstallTest.php | 17 +++++++++++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7cfa881..d571968 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,7 +3,7 @@ on: branches: - main - master - - availability + - debug pull_request: branches: - main @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-18.04 strategy: matrix: - php: [ '7.1', '7.2', '7.3', '7.4' ] + php: [ '7.4' ] mysql: [ '5.7', '8.0' ] env: diff --git a/Test/Case/AllInstallTest.php b/Test/Case/AllInstallTest.php index 6693416..b6fa1e1 100644 --- a/Test/Case/AllInstallTest.php +++ b/Test/Case/AllInstallTest.php @@ -22,11 +22,24 @@ class AllInstallTest extends NetCommonsTestSuite { /** * All test suite * - * @return NetCommonsTestSuite + * @return CakeTestSuite + * @SuppressWarnings(PHPMD) */ public static function suite() { $plugin = preg_replace('/^All([\w]+)Test$/', '$1', __CLASS__); - $suite = new NetCommonsTestSuite(sprintf('All %s Plugin tests', $plugin)); + + $Folder = new Folder(CakePlugin::path($plugin) . 'Test' . DS . 'Case'); + $files = $Folder->tree(null, true, 'files'); + foreach ($files as $file) { + if (preg_match('/\/All([\w]+)Test\.php$/', $file)) { + continue; + } + if (substr($file, -8) === 'Test.php') { + var_dump($file); + } + } + + $suite = new CakeTestSuite(sprintf('All %s Plugin tests', $plugin)); $suite->addTestDirectoryRecursive(CakePlugin::path($plugin) . 'Test' . DS . 'Case'); return $suite; }