diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-11-12 01:50:37 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-11-12 01:50:37 +0300 |
commit | 7423aa79c4ae28c2a6e7582368990f8ce26a91ca (patch) | |
tree | c1e7fd80a9bf8ff6cdf01df8e5575736b0ed7d6a /tests/PHPUnit/phpunit.xml.dist | |
parent | eb3744f4faae781de6d0b9dd7e53efbebd526751 (diff) |
#6635 rename phpunit.xml to phpunit.xml.dist. did not know it is supported out of the box by phpunit
Diffstat (limited to 'tests/PHPUnit/phpunit.xml.dist')
-rw-r--r-- | tests/PHPUnit/phpunit.xml.dist | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/tests/PHPUnit/phpunit.xml.dist b/tests/PHPUnit/phpunit.xml.dist new file mode 100644 index 0000000000..0a03dd9846 --- /dev/null +++ b/tests/PHPUnit/phpunit.xml.dist @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd" + backupGlobals="true" + backupStaticAttributes="false" + bootstrap="bootstrap.php" + colors="false" + convertErrorsToExceptions="true" + convertNoticesToExceptions="true" + convertWarningsToExceptions="true" + forceCoversAnnotation="false" + mapTestClassNameToCoveredClassName="false" + processIsolation="false" + stopOnError="false" + stopOnFailure="false" + stopOnIncomplete="false" + stopOnSkipped="false" + strict="false" + verbose="true"> + +<testsuites> + <testsuite name="SystemTests"> + <directory>./System</directory> + <directory>../../plugins/*/tests</directory><!-- There should be actually a tests/System but this way we make sure to execute all tests even if some are not moved to correct subdirectory. We will execute Unit and Integration tests twice :( ... --> + <directory>../../plugins/*/Test</directory> + <exclude>../../plugins/*/tests/Integration</exclude><!-- * in exclude is currently not supported by PHPUnit, so it won't work yet. See https://github.com/sebastianbergmann/php-file-iterator/pull/23 --> + <exclude>../../plugins/*/Test/Integration</exclude> + <exclude>../../plugins/*/tests/Unit</exclude> + <exclude>../../plugins/*/Test/Unit</exclude> + </testsuite> + <testsuite name="IntegrationTests"> + <directory>./Integration</directory> + <directory>../../plugins/*/tests/Integration</directory> + <directory>../../plugins/*/Test/Integration</directory> + </testsuite> + <testsuite name="UnitTests"> + <directory>./Unit</directory> + <directory>../../plugins/*/tests/Unit</directory> + <directory>../../plugins/*/Test/Unit</directory> + </testsuite> + <testsuite name="PluginTests"> + <directory>../../plugins/*/tests</directory> + <directory>../../plugins/*/Test</directory> + </testsuite> + <testsuite name="CoreTests"> + <directory>./Unit</directory> + <directory>./Integration</directory> + <directory>./System</directory> + </testsuite> +</testsuites> + +<filter> + <whitelist addUncoveredFilesFromWhitelist="true"> + <directory suffix=".php">../../core</directory> + <directory suffix=".php">../../plugins</directory> + <exclude> + <directory suffix=".php">../../core/Updates</directory> + <directory suffix=".php">../../plugins/Example*</directory> + <directory suffix=".php">../../plugins/SecurityInfo*</directory> + <directory suffix=".php">../../plugins/*/Updates</directory> + <directory suffix=".php">../../plugins/*/libs</directory> + <directory suffix=".php">../../plugins/*/tests</directory> + <directory suffix=".php">../../plugins/*/Test</directory> + </exclude> + </whitelist> +</filter> + +</phpunit> |