如何从 PHPUnit 的代码覆盖率中排除基本目录?
这是我的 phpunit.xml
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="include.php"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false">
<testsuite name="MyProject">
<directory>classes/*</directory>
</testsuite>
<logging>
<log type="coverage-html" target="../reports/coverage" charset="UTF-8" yui="true" highlight="false" lowUpperBound="35" highLowerBound="70"/>
<log type="coverage-xml" target="../reports/coverage.xml"/>
<log type="test-xml" target="../reports/logfile.xml" logIncompleteSkipped="false"/>
<log type="testdox-html" target="../reports/testdox.html"/>
<log type="testdox-text" target="../reports/testdox.txt"/>
</logging>
</phpunit>
当它输出时,它包括所有基本目录,例如:
c:\work\some\path\MyProject
如何使其仅包含...\MyProject\*
在代码覆盖率输出中?