Skip to content

Instantly share code, notes, and snippets.

@phpdave
Created March 2, 2017 21:16
Show Gist options
  • Save phpdave/6f38f67be1b70d9b59a837744cddc24a to your computer and use it in GitHub Desktop.
Save phpdave/6f38f67be1b70d9b59a837744cddc24a to your computer and use it in GitHub Desktop.
phpunit xml config example
<phpunit colors="true" bootstrap="tests/phpunits/bootstrap.php">
<testsuites>
<!--
<testsuite name="All">
<directory>tests/phpunits/</directory>
</testsuite>
-->
<testsuite name="Project1">
<file>tests/phpunits/app3.example.com/1Test</file>
<file>tests/phpunits/app4.example.com/2Test.php</file>
</testsuite>
<testsuite name="Project2">
<file>tests/phpunits/info.example.com/1Test.php</file>
<file>tests/phpunits/info.example.com/2Test.php</file>
</testsuite>
<testsuite name="App1 Website">
<file>tests/phpunits/App1.example.com/1Test.php</file>
<file>tests/phpunits/App1.example.com/2Test.php</file>
<file>tests/phpunits/App1.example.com/3Test.php</file>
</testsuite>
<testsuite name="App2 Website">
<file>tests/phpunits/App2.example.com/1Test.php</file>
</testsuite>
<!--
<testsuite name="Example">
<directory>/path/to/*Test.php files</directory>
<file>/path/to/MyTest.php</file>
<exclude>/path/to/exclude</exclude>
<directory suffix="Test.php" phpVersion="5.3.0" phpVersionOperator=">=">/path/to/files</directory>
<file phpVersion="5.3.0" phpVersionOperator=">=">/path/to/MyTest.php</file>
</testsuite>-->
</testsuites>
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment