2022-07-31 23:59:21 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2016-08-30 04:35:44 +02:00
|
|
|
<!--
|
2012-05-09 12:33:22 +02:00
|
|
|
PHPUnit configuration for SilverStripe
|
|
|
|
|
2021-11-03 23:13:45 +01:00
|
|
|
Requires PHPUnit 9+
|
2012-05-09 12:33:22 +02:00
|
|
|
|
2016-08-30 04:35:44 +02:00
|
|
|
Usage:
|
2019-02-02 09:22:56 +01:00
|
|
|
- "vendor/bin/phpunit": Runs all tests in all folders
|
|
|
|
- "vendor/bin/phpunit vendor/silverstripe/framework/tests/": Run all tests of the framework module
|
|
|
|
- "vendor/bin/phpunit vendor/silverstripe/framework/tests/filesystem": Run all filesystem tests within framework
|
|
|
|
- "vendor/bin/phpunit vendor/silverstripe/framework/tests/filesystem/FolderTest.php": Run a single test
|
|
|
|
- "vendor/bin/phpunit <dash><dash>coverage-html assets/": Generate coverage report (replace
|
|
|
|
<dash> with "-", requires xdebug or phpdbg)
|
2016-08-30 04:35:44 +02:00
|
|
|
|
2012-11-23 15:21:16 +01:00
|
|
|
More information:
|
|
|
|
- http://www.phpunit.de/manual/current/en/textui.html
|
|
|
|
- http://doc.silverstripe.org/framework/en/topics/testing/#configuration
|
2014-09-23 08:21:02 +02:00
|
|
|
|
|
|
|
It is safe to remove this file for normal website operation.
|
2010-10-15 03:20:45 +02:00
|
|
|
-->
|
2017-10-02 18:09:43 +02:00
|
|
|
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
|
2021-11-03 23:13:45 +01:00
|
|
|
<testsuites>
|
|
|
|
<testsuite name="Default">
|
|
|
|
<directory>app/tests</directory>
|
|
|
|
<directory>vendor/silverstripe/cms/tests/php</directory>
|
|
|
|
<directory>vendor/silverstripe/framework/tests/php</directory>
|
|
|
|
</testsuite>
|
2012-05-28 08:20:46 +02:00
|
|
|
|
2023-08-07 01:57:39 +02:00
|
|
|
<!-- Framework ORM tests are split up to run in parallel -->
|
|
|
|
<testsuite name="framework-core">
|
|
|
|
<directory>vendor/silverstripe/framework/tests/php</directory>
|
2023-09-07 04:14:12 +02:00
|
|
|
<exclude>vendor/silverstripe/framework/tests/php/ORM</exclude>
|
2023-08-07 01:57:39 +02:00
|
|
|
</testsuite>
|
|
|
|
<testsuite name="framework-orm">
|
|
|
|
<directory>vendor/silverstripe/framework/tests/php/ORM</directory>
|
2021-11-03 23:13:45 +01:00
|
|
|
</testsuite>
|
2016-08-30 04:35:44 +02:00
|
|
|
|
2021-11-03 23:13:45 +01:00
|
|
|
<!-- other core components -->
|
|
|
|
<testsuite name="core">
|
|
|
|
<directory>vendor/silverstripe/assets/tests/php/</directory>
|
|
|
|
<directory>vendor/silverstripe/versioned/tests/php/</directory>
|
|
|
|
</testsuite>
|
2017-04-04 06:02:44 +02:00
|
|
|
|
2021-11-03 23:13:45 +01:00
|
|
|
<!-- admin components -->
|
|
|
|
<testsuite name="admin">
|
|
|
|
<directory>vendor/silverstripe/admin/tests/php/</directory>
|
|
|
|
<directory>vendor/silverstripe/asset-admin/tests/php/</directory>
|
|
|
|
<directory>vendor/silverstripe/campaign-admin/tests/php/</directory>
|
|
|
|
<directory>vendor/silverstripe/cms/tests/</directory>
|
2023-01-25 22:20:05 +01:00
|
|
|
<directory>vendor/silverstripe/config/tests/</directory>
|
|
|
|
<directory>vendor/silverstripe/errorpage/tests/</directory>
|
2021-11-03 23:13:45 +01:00
|
|
|
<directory>vendor/silverstripe/graphql/tests/</directory>
|
2023-01-25 22:20:05 +01:00
|
|
|
<directory>vendor/silverstripe/login-forms/tests/php/</directory>
|
|
|
|
<directory>vendor/silverstripe/mimevalidator/tests/</directory>
|
2021-11-03 23:13:45 +01:00
|
|
|
<directory>vendor/silverstripe/reports/tests/</directory>
|
|
|
|
<directory>vendor/silverstripe/siteconfig/tests/php/</directory>
|
|
|
|
</testsuite>
|
|
|
|
</testsuites>
|
2016-05-05 21:43:27 +02:00
|
|
|
</phpunit>
|