district09/php_package_qa-drupal

View on GitHub
configs/phpunit-extension.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="vendor/digipolisgent/qa-drupal/src/PHPUnit/Extension/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">./</directory>
    </include>
    <exclude>
        <directory>./vendor</directory>
        <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>web/themes/custom/*/source</directory>
    </exclude>

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