upstream V3 development https://www.gnusocial.rocks/v3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

65 lines
2.4 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
  3. <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
  5. backupGlobals="false"
  6. colors="true"
  7. bootstrap="tests/bootstrap.php"
  8. stopOnFailure="true"
  9. stopOnError="true"
  10. cacheResult="true"
  11. cacheResultFile=".phpunit_cache"
  12. executionOrder="defects">
  13. <coverage processUncoveredFiles="true">
  14. <include>
  15. <directory suffix=".php">src</directory>
  16. </include>
  17. <exclude>
  18. <directory>src/Util/Exception</directory>
  19. <directory>src/PHPStan</directory>
  20. <directory>src/Routes</directory>
  21. <directory>src/DataFixtures</directory> <!-- This is where the test data is loaded, it get's tested enough, me thinks -->
  22. <directory>src/Security</directory> <!-- TODO: Should be tested in the future -->
  23. <file>src/Kernel.php</file>
  24. <file>src/CacheKernel.php</file>
  25. </exclude>
  26. </coverage>
  27. <php>
  28. <ini name="error_reporting" value="-1"/>
  29. <server name="APP_ENV" value="test" force="true"/>
  30. <server name="SHELL_VERBOSITY" value="-1"/>
  31. <server name="SYMFONY_PHPUNIT_REMOVE" value=""/>
  32. <server name="SYMFONY_PHPUNIT_VERSION" value="9.5"/>
  33. <!-- <env name="CACHE_DRIVER" value="array"/> -->
  34. <env name="SESSION_DRIVER" value="array"/>
  35. <env name="QUEUE_DRIVER" value="sync"/>
  36. <env name="MAIL_DRIVER" value="array"/>
  37. </php>
  38. <testsuites>
  39. <testsuite name="Controller">
  40. <directory suffix="Test.php">./tests/Controller</directory>
  41. </testsuite>
  42. <testsuite name="Core">
  43. <directory suffix="Test.php">./tests/Core</directory>
  44. </testsuite>
  45. <testsuite name="Entity">
  46. <directory suffix="Test.php">./tests/Entity</directory>
  47. </testsuite>
  48. <testsuite name="Twig">
  49. <directory suffix="Test.php">./tests/Twig</directory>
  50. </testsuite>
  51. <testsuite name="Util">
  52. <directory suffix="Test.php">./tests/Util</directory>
  53. </testsuite>
  54. <testsuite name="Plugins">
  55. <directory suffix="Test.php">./plugins/</directory>
  56. </testsuite>
  57. <testsuite name="Component">
  58. <directory suffix="Test.php">./components/</directory>
  59. </testsuite>
  60. </testsuites>
  61. <listeners>
  62. <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
  63. </listeners>
  64. </phpunit>