단위 테스트 Zend Framework
어플리케이션으로 로프를 배우고 있습니다. 지금까지 Zend Framework
과 작동하도록 PHPUnit
을 설정하고 간단한 테스트 사례를 작성하기 시작했습니다.PHPUnit 코드 커버리지
내 문제는 내 phpunit.xml
의 로깅 태그에 설정되었지만 Code Coverage
이 작동하지 않는 이유가 궁금합니다.
오류는 발생하지 않지만 적용 범위 보고서가 생성되지 않습니다.
<phpunit bootstrap="./application/bootstrap.php" colors="true">
<testsuite name="CI Test Suite">
<directory>./</directory>
</testsuite>
<testsuite name="Library Test Suite">
<directory>./library</directory>
</testsuite>
<filter>
<whitelist>
<directory suffix=".php">../application/</directory>
<exclude>
<directory suffix=".phtml">../application</directory>
<file>../application/Bootstrap.php</file>
<file>../application/controllers/ErrorController.php</file>
</exclude>
</whitelist>
<logging>
<log type="coverage-html" target="./log/report" charset="UTF-8" yui="true"
highlight="true" lowUpperBound="50" highLowerBound="80" />
<log type="testdox" target="./log/testdox.html" />
</logging>
</filter>
</phpunit>
누구나 전에이 발생 : 나는 phpunit --coverage <dir>
을 실행 내 phpunit을의 로깅 섹션은 다음과 같습니다 때
그러나 그것은 작동? 그렇다면 무엇이 문제일까요?
필자의 로깅이 필터 안에 중첩되어 있지 않습니다. 약간의 차이가있을 수 있습니다. –