Skip to content

Instantly share code, notes, and snippets.

@voduytuan
Created September 19, 2015 05:20
Show Gist options
  • Save voduytuan/fbee5db267d07aa58862 to your computer and use it in GitHub Desktop.
Save voduytuan/fbee5db267d07aa58862 to your computer and use it in GitHub Desktop.
Config for phpunit
<?xml version="1.0" encoding="UTF-8"?>
<phpunit>
<testsuites>
<testsuite name="Model">
<directory>tests/Model/</directory>
</testsuite>
</testsuites>
<logging>
<log type="coverage-html" target="build/coverage"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="coverage-crap4j" target="build/logs/crap4j.xml"/>
<log type="coverage-xml" target="build/logs/coverage"/>
<log type="junit" target="build/logs/junit.xml"/>
</logging>
<filter>
<blacklist>
<directory>src/libs</directory>
<directory>src/templates</directory>
<directory>src/Vendor</directory>
</blacklist>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment