<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
         bootstrap="bootstrap.php"
         colors="true"
         cacheDirectory=".phpunit.cache"
         failOnWarning="true"
         failOnRisky="true"
         beStrictAboutOutputDuringTests="true">
  <testsuites>
    <!-- unit and render need no database and run everywhere -->
    <testsuite name="unit">
      <directory>unit</directory>
    </testsuite>
    <testsuite name="render">
      <directory>render</directory>
    </testsuite>
    <!-- integration needs MySQL/MariaDB; skips itself when none is reachable -->
    <testsuite name="integration">
      <directory>integration</directory>
    </testsuite>
  </testsuites>

  <groups>
    <exclude>
      <!-- live: hits the real Shopify dev store. Opt in with the group flag. -->
      <group>live</group>
      <!-- benchmark: slow, asserts throughput targets. Opt in with the group flag. -->
      <group>benchmark</group>
    </exclude>
  </groups>

  <source>
    <include>
      <directory suffix=".php">../lib</directory>
      <directory suffix=".php">../jobs</directory>
    </include>
  </source>
</phpunit>
