MNT Update phpunit xml file for phpunit 11

This commit is contained in:
Steve Boyd 2024-09-27 09:42:35 +12:00
parent e46135be0a
commit 4195700f0b

View File

@ -1,38 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.3/phpunit.xsd">
Standard module phpunit configuration. <testsuites>
Requires PHPUnit ^9 <testsuite name="Default">
--> <directory>tests/php</directory>
<phpunit bootstrap="tests/bootstrap.php" colors="true"> </testsuite>
<testsuites> <!-- Framework ORM tests are split up to run in parallel in github actions CI -->
<testsuite name="Default"> <testsuite name="framework-core">
<directory>tests/php</directory> <!-- Will be run in github actions CI with option exclude-filter /ORM/ -->
</testsuite> <directory>tests/php</directory>
<!-- Framework ORM tests are split up to run in parallel --> </testsuite>
<testsuite name="framework-core"> <testsuite name="framework-orm">
<directory>tests/php</directory> <!-- Will be run in github actions CI with option filter /ORM/ -->
<exclude> <directory>tests/php</directory>
<directory>tests/php/ORM</directory> </testsuite>
</exclude> <!-- Cache suite is separate so it only runs what it needs to run -->
</testsuite> <testsuite name="framework-cache-only">
<testsuite name="framework-orm"> <directory>tests/php/Core/Cache</directory>
<directory>tests/php/ORM</directory> </testsuite>
</testsuite> </testsuites>
<testsuite name="cms"> <source>
<directory>vendor/silverstripe/cms/tests</directory> <include>
</testsuite> <directory suffix=".php">.</directory>
<!-- Cache suite is separate so it only runs what it needs to run. Intentionally also included in core above. --> </include>
<testsuite name="framework-cache-only"> <exclude>
<directory>tests/php/Core/Cache</directory> <directory suffix=".php">tests/</directory>
</testsuite> <directory suffix=".php">thirdparty/</directory>
</testsuites> </exclude>
<filter> </source>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">.</directory>
<exclude>
<directory suffix=".php">tests/</directory>
<directory suffix=".php">thirdparty/</directory>
</exclude>
</whitelist>
</filter>
</phpunit> </phpunit>