Merge pull request #11407 from creative-commoners/pulls/6/phpunit-xml

MNT Update phpunit xml file for phpunit 11
This commit is contained in:
Guy Sartorelli 2024-09-27 10:50:46 +12:00 committed by GitHub
commit afdd95eed8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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.
Requires PHPUnit ^9
-->
<phpunit bootstrap="tests/bootstrap.php" colors="true">
<testsuites> <testsuites>
<testsuite name="Default"> <testsuite name="Default">
<directory>tests/php</directory> <directory>tests/php</directory>
</testsuite> </testsuite>
<!-- Framework ORM tests are split up to run in parallel --> <!-- Framework ORM tests are split up to run in parallel in github actions CI -->
<testsuite name="framework-core"> <testsuite name="framework-core">
<!-- Will be run in github actions CI with option exclude-filter /ORM/ -->
<directory>tests/php</directory> <directory>tests/php</directory>
<exclude>
<directory>tests/php/ORM</directory>
</exclude>
</testsuite> </testsuite>
<testsuite name="framework-orm"> <testsuite name="framework-orm">
<directory>tests/php/ORM</directory> <!-- Will be run in github actions CI with option filter /ORM/ -->
<directory>tests/php</directory>
</testsuite> </testsuite>
<testsuite name="cms"> <!-- Cache suite is separate so it only runs what it needs to run -->
<directory>vendor/silverstripe/cms/tests</directory>
</testsuite>
<!-- Cache suite is separate so it only runs what it needs to run. Intentionally also included in core above. -->
<testsuite name="framework-cache-only"> <testsuite name="framework-cache-only">
<directory>tests/php/Core/Cache</directory> <directory>tests/php/Core/Cache</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter> <source>
<whitelist addUncoveredFilesFromWhitelist="true"> <include>
<directory suffix=".php">.</directory> <directory suffix=".php">.</directory>
</include>
<exclude> <exclude>
<directory suffix=".php">tests/</directory> <directory suffix=".php">tests/</directory>
<directory suffix=".php">thirdparty/</directory> <directory suffix=".php">thirdparty/</directory>
</exclude> </exclude>
</whitelist> </source>
</filter>
</phpunit> </phpunit>