mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-25 05:56:14 +01:00
parent
e4c44912e2
commit
bc64aedb38
3 changed files with 96 additions and 4 deletions
45
Tests/Functional/FunctionalTests.xml
Normal file
45
Tests/Functional/FunctionalTests.xml
Normal file
|
@ -0,0 +1,45 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
|
||||
backupGlobals="true"
|
||||
bootstrap="../../.Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTestsBootstrap.php"
|
||||
cacheResult="false"
|
||||
colors="true"
|
||||
convertErrorsToExceptions="true"
|
||||
convertWarningsToExceptions="true"
|
||||
convertDeprecationsToExceptions="true"
|
||||
convertNoticesToExceptions="true"
|
||||
forceCoversAnnotation="false"
|
||||
stopOnError="false"
|
||||
stopOnFailure="false"
|
||||
stopOnIncomplete="false"
|
||||
stopOnSkipped="false"
|
||||
verbose="false"
|
||||
beStrictAboutTestsThatDoNotTestAnything="false"
|
||||
failOnWarning="true"
|
||||
failOnRisky="true"
|
||||
>
|
||||
<testsuites>
|
||||
<testsuite name="Functional tests">
|
||||
<!--
|
||||
This path either needs an adaption in extensions, or an extension's
|
||||
test location path needs to be given to phpunit.
|
||||
-->
|
||||
<directory suffix="Test.php">./</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<php>
|
||||
<!-- @deprecated: will be removed with next major version, constant TYPO3_MODE is deprecated -->
|
||||
<const name="TYPO3_MODE" value="BE" />
|
||||
<!--
|
||||
@deprecated: Set this to not suppress warnings, notices and deprecations in functional tests
|
||||
with TYPO3 core v11 and up.
|
||||
Will always be done with next major version.
|
||||
To still suppress warnings, notices and deprecations, do NOT define the constant at all.
|
||||
-->
|
||||
<const name="TYPO3_TESTING_FUNCTIONAL_REMOVE_ERROR_HANDLER" value="true" />
|
||||
<ini name="display_errors" value="1" />
|
||||
<env name="TYPO3_CONTEXT" value="Testing" />
|
||||
</php>
|
||||
</phpunit>
|
47
Tests/Unit/UnitTests.xml
Normal file
47
Tests/Unit/UnitTests.xml
Normal file
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
|
||||
backupGlobals="true"
|
||||
bootstrap="../../.Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTestsBootstrap.php"
|
||||
cacheResult="false"
|
||||
colors="true"
|
||||
convertDeprecationsToExceptions="true"
|
||||
convertErrorsToExceptions="true"
|
||||
convertWarningsToExceptions="true"
|
||||
convertNoticesToExceptions="true"
|
||||
forceCoversAnnotation="false"
|
||||
processIsolation="false"
|
||||
stopOnError="false"
|
||||
stopOnFailure="false"
|
||||
stopOnIncomplete="false"
|
||||
stopOnSkipped="false"
|
||||
verbose="false"
|
||||
beStrictAboutTestsThatDoNotTestAnything="false"
|
||||
failOnWarning="true"
|
||||
failOnRisky="true"
|
||||
>
|
||||
<testsuites>
|
||||
<testsuite name="Unit tests">
|
||||
<!--
|
||||
This path either needs an adaption in extensions, or an extension's
|
||||
test location path needs to be given to phpunit.
|
||||
-->
|
||||
<directory suffix="Test.php">./</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<coverage>
|
||||
<include>
|
||||
<!--
|
||||
This path needs an adaption in extensions, when coverage statistics are wanted.
|
||||
-->
|
||||
<directory>../../../../../../typo3/sysext/*/Classes/</directory>
|
||||
</include>
|
||||
</coverage>
|
||||
<php>
|
||||
<!-- @deprecated: will be removed with next major version, constant TYPO3_MODE is deprecated -->
|
||||
<const name="TYPO3_MODE" value="BE" />
|
||||
<ini name="display_errors" value="1" />
|
||||
<env name="TYPO3_CONTEXT" value="Testing" />
|
||||
</php>
|
||||
</phpunit>
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue