phpunit.xml.dist 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. cacheResultFile="var/phpunit/result_cache"
  9. cacheResult="true"
  10. processIsolation="false">
  11. <coverage
  12. cacheDirectory="var/phpunit/coverage_cache"
  13. includeUncoveredFiles="true"
  14. processUncoveredFiles="true"
  15. >
  16. <!-- pathCoverage="true" -->
  17. <include>
  18. <directory suffix=".php">src</directory>
  19. <directory>components/Attachment</directory>
  20. <directory>components/Feed</directory>
  21. <!-- <directory>components/Group</directory> -->
  22. <directory>components/Person</directory>
  23. <!-- <directory>plugins/ActivityPub</directory> -->
  24. </include>
  25. <exclude>
  26. <directory>src/Util/Exception</directory>
  27. <directory>src/Controller</directory>
  28. <directory>src/PHPStan</directory>
  29. <directory>src/Routes</directory>
  30. <directory>src/Twig/Extension.php</directory>
  31. <directory>src/DataFixtures</directory> <!-- This is where the test data is loaded, it get's tested enough, me thinks -->
  32. <directory>src/Security</directory> <!-- TODO: Should be tested in the future -->
  33. <file>src/Kernel.php</file>
  34. <file>src/CacheKernel.php</file>
  35. </exclude>
  36. <report>
  37. <html outputDirectory=".test_coverage_report"/>
  38. </report>
  39. </coverage>
  40. <php>
  41. <ini name="error_reporting" value="-1"/>
  42. <server name="APP_ENV" value="test" force="true"/>
  43. <!-- <server name="APP_DEBUG" value="false" /> -->
  44. <server name="SHELL_VERBOSITY" value="-1"/>
  45. <server name="SYMFONY_PHPUNIT_REMOVE" value=""/>
  46. <server name="SYMFONY_PHPUNIT_VERSION" value="9.5"/>
  47. <!-- <env name="CACHE_DRIVER" value="array"/> -->
  48. <env name="SESSION_DRIVER" value="array"/>
  49. <env name="QUEUE_DRIVER" value="sync"/>
  50. <env name="MAIL_DRIVER" value="array"/>
  51. </php>
  52. <testsuites>
  53. <testsuite name="Controller">
  54. <directory suffix="Test.php">./tests/Controller</directory>
  55. <exclude>./tests/Controller/SecurityTest.php</exclude>
  56. </testsuite>
  57. <testsuite name="Core">
  58. <directory suffix="Test.php">./tests/Core</directory>
  59. </testsuite>
  60. <testsuite name="Entity">
  61. <directory suffix="Test.php">./tests/Entity</directory>
  62. </testsuite>
  63. <testsuite name="Twig">
  64. <directory suffix="Test.php">./tests/Twig</directory>
  65. </testsuite>
  66. <testsuite name="Util">
  67. <directory suffix="Test.php">./tests/Util</directory>
  68. </testsuite>
  69. <testsuite name="Plugins">
  70. <directory suffix="Test.php">./plugins/</directory>
  71. </testsuite>
  72. <testsuite name="Component">
  73. <directory suffix="Test.php">./components/</directory>
  74. </testsuite>
  75. </testsuites>
  76. <listeners>
  77. <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
  78. </listeners>
  79. </phpunit>