2016-08-30 04:35:44 +02:00
|
|
|
<!--
|
2012-05-09 12:33:22 +02:00
|
|
|
PHPUnit configuration for SilverStripe
|
|
|
|
|
2012-05-28 08:20:46 +02:00
|
|
|
Requires PHPUnit 3.5+
|
2012-05-09 12:33:22 +02:00
|
|
|
|
2016-08-30 04:35:44 +02:00
|
|
|
Usage:
|
2010-10-15 03:20:45 +02:00
|
|
|
- "phpunit": Runs all tests in all folders
|
2012-04-12 11:15:32 +02:00
|
|
|
- "phpunit framework/tests/": Run all tests of the framework module
|
|
|
|
- "phpunit framework/tests/filesystem": Run all filesystem tests within the framework module
|
|
|
|
- "phpunit framework/tests/filesystem/FolderTest.php": Run a single test
|
2010-10-15 03:20:45 +02:00
|
|
|
- "phpunit <dash><dash>coverage-html assets/": Generate coverage report (replace <dash> with "-", requires xdebug)
|
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">
|
2012-05-28 08:20:46 +02:00
|
|
|
|
2010-10-15 03:20:45 +02:00
|
|
|
<testsuite name="Default">
|
2012-05-28 08:20:46 +02:00
|
|
|
<directory>mysite/tests</directory>
|
2017-10-03 04:09:02 +02:00
|
|
|
<directory>vendor/silverstripe/cms/tests/php</directory>
|
|
|
|
<directory>vendor/silverstripe/framework/tests/php</directory>
|
2010-10-15 03:20:45 +02:00
|
|
|
</testsuite>
|
2016-08-30 04:35:44 +02:00
|
|
|
|
2017-04-04 06:02:44 +02:00
|
|
|
<!-- core components -->
|
|
|
|
<testsuite name="core">
|
2017-10-03 04:09:02 +02:00
|
|
|
<directory>vendor/silverstripe/framework/tests/php/</directory>
|
|
|
|
<directory>vendor/silverstripe/assets/tests/php/</directory>
|
|
|
|
<directory>vendor/silverstripe/versioned/tests/php/</directory>
|
2017-04-04 06:02:44 +02:00
|
|
|
</testsuite>
|
|
|
|
|
|
|
|
<!-- admin components -->
|
|
|
|
<testsuite name="admin">
|
2017-10-03 04:09:02 +02:00
|
|
|
<directory>vendor/silverstripe/cms/tests/</directory>
|
|
|
|
<directory>vendor/silverstripe/admin/tests/php/</directory>
|
|
|
|
<directory>vendor/silverstripe/campaign-admin/tests/php/</directory>
|
|
|
|
<directory>vendor/silverstripe/asset-admin/tests/php/</directory>
|
|
|
|
<directory>vendor/silverstripe/graphql/tests/</directory>
|
|
|
|
<directory>vendor/silverstripe/siteconfig/tests/php/</directory>
|
|
|
|
<directory>vendor/silverstripe/reports/tests/</directory>
|
2017-04-04 06:02:44 +02:00
|
|
|
</testsuite>
|
|
|
|
|
2010-10-15 03:21:16 +02:00
|
|
|
<groups>
|
|
|
|
<exclude>
|
|
|
|
<group>sanitychecks</group>
|
|
|
|
</exclude>
|
|
|
|
</groups>
|
2016-05-05 21:43:27 +02:00
|
|
|
</phpunit>
|