From 5d4b7244855424ccfdeb855963aeb4425fa2dfea Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Fri, 7 Aug 2020 10:22:32 +0200 Subject: [PATCH] Do not separate unit and functional tests Both can be run with a single command and configuration. Therefore merge both configurations into one and adjust CI call. --- .github/workflows/ci.yaml | 5 +---- Tests/Functional/phpunit.xml.dist | 32 ------------------------------- phpunit.xml.dist | 17 +++++++++++----- 3 files changed, 13 insertions(+), 41 deletions(-) delete mode 100644 Tests/Functional/phpunit.xml.dist diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a00cd33..bab92bb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -58,8 +58,5 @@ jobs: - name: Code Quality (by PHPStan) run: ./vendor/bin/phpstan analyse - - name: PHPUnit Unit Tests + - name: PHPUnit Tests run: ./vendor/bin/phpunit --testdox - - - name: PHPUnit Functional Tests - run: ./vendor/bin/phpunit -c Tests/Functional/phpunit.xml.dist --testdox diff --git a/Tests/Functional/phpunit.xml.dist b/Tests/Functional/phpunit.xml.dist deleted file mode 100644 index 444932f..0000000 --- a/Tests/Functional/phpunit.xml.dist +++ /dev/null @@ -1,32 +0,0 @@ - - - - - . - - - - - - ../../Classes/Command - ../../Classes/Dashboard - - - - - - - diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 32764a1..459c34e 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,9 +1,10 @@ - + Tests/Unit/ + + Tests/Functional/ + - Classes/Domain - Classes/Middleware + Classes + + + +