Skip to content
Extraits de code Groupes Projets
phpunit.xml.dist 2,97 ko
Newer Older
  • Learn to ignore specific revisions
  • <?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"
             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>
    
    Thomas Steur's avatar
    Thomas Steur a validé
        </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>
    
    <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>
    
    sgiehl's avatar
    sgiehl a validé
                <directory suffix=".php">../../plugins/*/Test</directory>