Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ Requires PHPUnit ^9
</testsuite>
<!-- Framework ORM tests are split up to run in parallel -->
<testsuite name="framework-core">
<directory>tests/php</directory>
<exclude>
<directory>tests/php/ORM</directory>
</exclude>
<directory>tests/php/Control</directory>
<directory>tests/php/Core</directory>
<directory>tests/php/Dev</directory>
<directory>tests/php/Forms</directory>
<directory>tests/php/i18n</directory>
<directory>tests/php/Logging</directory>
<directory>tests/php/Security</directory>
<directory>tests/php/View</directory>
Comment on lines -13 to +20
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explicitly listing each item isn't maintainable - we will innevitably forget to add new directories here when we create them.

Copy link
Contributor Author

@lekoala lekoala Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then the other way is to move test files into one folder per test suite that can run in parallel

using "exclude" is not really maintainable either since it's deprecated

</testsuite>
<testsuite name="framework-orm">
<directory>tests/php/ORM</directory>
Expand All @@ -22,13 +26,13 @@ Requires PHPUnit ^9
<directory>vendor/silverstripe/cms/tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<coverage>
<include>
<directory suffix=".php">.</directory>
<exclude>
<directory suffix=".php">tests/</directory>
<directory suffix=".php">thirdparty/</directory>
</exclude>
</whitelist>
</filter>
</include>
<exclude>
<directory suffix=".php">tests/</directory>
<directory suffix=".php">thirdparty/</directory>
</exclude>
</coverage>
</phpunit>
Loading