district09/php_package_qa-drupal

View on GitHub
configs/phpunit-site.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<!-- TODO set checkForUnintentionallyCoveredCode="true" once https://www.drupal.org/node/2626832 is resolved. -->
<phpunit bootstrap="web/core/tests/bootstrap.php"
         printerClass="Drupal\Tests\Listeners\HtmlOutputPrinter"
         colors="true"
         beStrictAboutTestsThatDoNotTestAnything="true"
         beStrictAboutOutputDuringTests="true"
         beStrictAboutChangesToGlobalState="true">

  <php>
    <env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>

    <ini name="error_reporting" value="32767"/>
    <ini name="memory_limit" value="-1"/>
  </php>

  <testsuites>
    <testsuite name="unit">
      <file>../vendor/digipolisgent/qa-drupal/src/PHPUnit/TestSuites/UnitTestSuite.php</file>
    </testsuite>
    <testsuite name="kernel">
      <file>../vendor/digipolisgent/qa-drupal/src/PHPUnit/TestSuites/KernelTestSuite.php</file>
    </testsuite>
    <testsuite name="functional">
      <file>../vendor/digipolisgent/qa-drupal/src/PHPUnit/TestSuites/FunctionalTestSuite.php</file>
    </testsuite>
    <testsuite name="functional-javascript">
      <file>../vendor/digipolisgent/qa-drupal/src/PHPUnit/TestSuites/FunctionalJavascriptTestSuite.php</file>
    </testsuite>
  </testsuites>

  <listeners>
    <listener class="Drupal\Tests\Listeners\DrupalListener">
    </listener>
    <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
    </listener>
  </listeners>

  <coverage>
    <include>
      <directory suffix=".php">modules/custom</directory>
      <directory suffix=".php">profiles/custom</directory>
      <directory suffix=".php">themes/custom</directory>
    </include>
    <exclude>
        <directory suffix=".api.php">./</directory>
        <directory suffix="Spy.php">./</directory>
        <directory suffix="Stub.php">./</directory>
        <directory suffix="Test.php">./</directory>
        <directory suffix="TestBase.php">./</directory>
        <directory suffix="TestCase.php">./</directory>
        <directory>themes/custom/*/source</directory>
    </exclude>

    <report>
      <html outputDirectory="../build/coverage"/>
      <clover outputFile="../build/logs/clover.xml"/>
    </report>
  </coverage>
</phpunit>