From bc64aedb380909f996326976f0b53216ea69b0b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Wed, 25 Oct 2023 19:08:36 +0200 Subject: [PATCH] [TASK] Use own configuration files for tests (#952) Resolves: #902 --- Tests/Functional/FunctionalTests.xml | 45 ++++++++++++++++++++++++++ Tests/Unit/UnitTests.xml | 47 ++++++++++++++++++++++++++++ composer.json | 8 ++--- 3 files changed, 96 insertions(+), 4 deletions(-) create mode 100644 Tests/Functional/FunctionalTests.xml create mode 100644 Tests/Unit/UnitTests.xml diff --git a/Tests/Functional/FunctionalTests.xml b/Tests/Functional/FunctionalTests.xml new file mode 100644 index 0000000..ed066cf --- /dev/null +++ b/Tests/Functional/FunctionalTests.xml @@ -0,0 +1,45 @@ + + + + + + ./ + + + + + + + + + + + diff --git a/Tests/Unit/UnitTests.xml b/Tests/Unit/UnitTests.xml new file mode 100644 index 0000000..0edb62f --- /dev/null +++ b/Tests/Unit/UnitTests.xml @@ -0,0 +1,47 @@ + + + + + + ./ + + + + + + ../../../../../../typo3/sysext/*/Classes/ + + + + + + + + + diff --git a/composer.json b/composer.json index 99c2db9..6f89633 100644 --- a/composer.json +++ b/composer.json @@ -111,7 +111,7 @@ ], "ci:coverage:functional": [ "@coverage:create-directories", - ".Build/bin/phpunit -c .Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTests.xml --whitelist Classes --coverage-php=.Build/coverage/functional.cov Tests/Functional" + ".Build/bin/phpunit -c ./Tests/Functional/FunctionalTests.xml --whitelist Classes --coverage-php=.Build/coverage/functional.cov Tests/Functional" ], "ci:coverage:merge": [ "@coverage:create-directories", @@ -119,7 +119,7 @@ ], "ci:coverage:unit": [ "@coverage:create-directories", - ".Build/bin/phpunit -c .Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTests.xml --whitelist Classes --coverage-php=.Build/coverage/unit.cov Tests/Unit" + ".Build/bin/phpunit -c ./Tests/Unit/UnitTests.xml --whitelist Classes --coverage-php=.Build/coverage/unit.cov Tests/Unit" ], "ci:dynamic": [ "@ci:tests" @@ -149,8 +149,8 @@ "@ci:tests:unit", "@ci:tests:functional" ], - "ci:tests:functional": "find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; .Build/bin/phpunit -c .Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTests.xml {}';", - "ci:tests:unit": ".Build/bin/phpunit -c .Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTests.xml Tests/Unit", + "ci:tests:functional": "find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; .Build/bin/phpunit -c ./Tests/Functional/FunctionalTests.xml {}';", + "ci:tests:unit": ".Build/bin/phpunit -c ./Tests/Unit/UnitTests.xml Tests/Unit", "ci:ts:lint": "typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript", "ci:yaml:lint": "find . ! -path '*.Build/*' ! -path '*node_modules/*' -regextype egrep -regex '.*.ya?ml$' | xargs -r php ./.Build/bin/yaml-lint", "coverage:create-directories": "mkdir -p .Build/logs .Build/coverage",