-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Use own configuration files for tests
Resolves: #902
- Loading branch information
1 parent
28523ea
commit 2925abd
Showing
3 changed files
with
92 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<phpunit | ||
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<phpunit | ||
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> | ||
<!-- @todo: change tag to 'coverage' when TF requires phpunit > 9 --> | ||
<filter> | ||
<!-- @todo: change tag to 'include' when TF requires phpunit > 9 --> | ||
<whitelist> | ||
<!-- | ||
This path needs an adaption in extensions, when coverage statistics are wanted. | ||
--> | ||
<directory>../../../../../../typo3/sysext/*/Classes/</directory> | ||
</whitelist> | ||
</filter> | ||
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters