phpunit.xml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
  4. bootstrap="vendor/autoload.php"
  5. colors="true"
  6. >
  7. <extensions>
  8. <extension class="Baijunyao\LaravelTestSupport\Extensions\CreateRandomDatabase"/>
  9. </extensions>
  10. <testsuites>
  11. <testsuite name="Unit">
  12. <directory suffix="Test.php">./tests/Unit</directory>
  13. </testsuite>
  14. <testsuite name="Feature">
  15. <directory suffix="Test.php">./tests/Feature</directory>
  16. </testsuite>
  17. <testsuite name="Commands">
  18. <directory suffix="Test.php">./tests/Commands</directory>
  19. </testsuite>
  20. </testsuites>
  21. <coverage processUncoveredFiles="true">
  22. <include>
  23. <directory suffix=".php">./app</directory>
  24. </include>
  25. </coverage>
  26. <php>
  27. <env name="APP_ENV" value="testing"/>
  28. <env name="BCRYPT_ROUNDS" value="4"/>
  29. <env name="CACHE_DRIVER" value="array"/>
  30. <!-- <env name="DB_CONNECTION" value="sqlite"/> -->
  31. <!-- <env name="DB_DATABASE" value=":memory:"/> -->
  32. <env name="MAIL_MAILER" value="array"/>
  33. <env name="QUEUE_CONNECTION" value="sync"/>
  34. <env name="SESSION_DRIVER" value="array"/>
  35. <env name="TELESCOPE_ENABLED" value="false"/>
  36. <env name="SCOUT_DRIVER" value="null"/>
  37. </php>
  38. </phpunit>