mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
9dd5ebee8c
The SilverStripe project structure complicates the travis test run, and the goal of this branch is to prevent it from being necessary. - Unit tests can be run simply with PHPUnit. - Behat test can be run with the silverstripe/serve module Note that initially this commit doesn’t cater to the behat tests. As part of this, we allow dev packages to be installed when testing These settings don’t affect projects that use framework, only when framework’s composer install / require calls are used themselves. Since SS4 is pre-stable, these are important. They can probably be removed once SS4 stable (and stable versions of support packages) have been released.
36 lines
1.0 KiB
XML
36 lines
1.0 KiB
XML
<!--
|
|
PHPUnit configuration for SilverStripe
|
|
|
|
Requires PHPUnit 3.5+
|
|
|
|
Usage:
|
|
- "phpunit": Runs all tests in all folders
|
|
- "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
|
|
- "phpunit <dash><dash>coverage-html assets/": Generate coverage report (replace <dash> with "-", requires xdebug)
|
|
|
|
More information:
|
|
- http://www.phpunit.de/manual/current/en/textui.html
|
|
- http://doc.silverstripe.org/framework/en/topics/testing/#configuration
|
|
|
|
It is safe to remove this file for normal website operation.
|
|
-->
|
|
<phpunit bootstrap="tests/bootstrap.php" colors="true">
|
|
|
|
<testsuite name="Default">
|
|
<directory>tests</directory>
|
|
<directory>admin/tests</directory>
|
|
</testsuite>
|
|
|
|
<listeners>
|
|
<listener class="SilverStripe\Dev\TestListener" />
|
|
</listeners>
|
|
|
|
<groups>
|
|
<exclude>
|
|
<group>sanitychecks</group>
|
|
</exclude>
|
|
</groups>
|
|
</phpunit>
|