codecoverage.xml
<phpunit
bootstrap="tests/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<php>
<const name="WPAPI_CODE_COVERAGE" value="1" />
</php>
<testsuites>
<!-- Default test suite to run all tests -->
<testsuite>
<directory prefix="test-" suffix=".php">tests</directory>
</testsuite>
</testsuites>
<filter>
<blacklist>
<directory suffix=".php">.</directory>
</blacklist>
<whitelist>
<directory suffix=".php">./lib</directory>
<file>./plugin.php</file>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>