From ae61379b6c1ddde0c649780551e8378c9c5f52be Mon Sep 17 00:00:00 2001 From: "thomas.layh" Date: Thu, 27 Jun 2024 15:39:10 +0200 Subject: [PATCH] chore: add filter for coverage --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5ceed66..98f9966 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -62,7 +62,7 @@ jobs: if: matrix.typo3 == '^12.4' && matrix.php == '8.3' run: | export "UNIT_XML"=.Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTests.xml - .Build/bin/phpunit --coverage-clover=unittest-coverage.clover --colors -c $UNIT_XML Tests/Unit/ + .Build/bin/phpunit --coverage-filter=Classes --coverage-clover=unittest-coverage.clover --colors -c $UNIT_XML Tests/Unit/ - name: Functional Tests without coverage run: | @@ -78,7 +78,7 @@ jobs: - name: Functional Tests with coverage run: | export "FUNCTIONAL_XML"=.Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTests.xml - find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo "Running functional test suite {}"; .Build/bin/phpunit --whitelist Classes --coverage-clover={}functionaltest-coverage.clover --colors -c $FUNCTIONAL_XML {}' + find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo "Running functional test suite {}"; .Build/bin/phpunit --coverage-filter=Classes --coverage-clover={}functionaltest-coverage.clover --colors -c $FUNCTIONAL_XML {}' if: matrix.typo3 == '^12.4' && matrix.php == '8.3' env: typo3DatabaseHost: 127.0.0.1