Skip to content

Instantly share code, notes, and snippets.

@naotawool
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naotawool/9366565 to your computer and use it in GitHub Desktop.
Save naotawool/9366565 to your computer and use it in GitHub Desktop.
PHPUnit only
<phpunit
bootstrap="bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="true"
stopOnError="false"
stopOnFailure="false"
stopOnSkipped="false"
stopOnIncomplete="false">
<testsuites>
<testsuite name="ComponentsTest">
<directory>unit/components</directory>
</testsuite>
<testsuite name="ModelsTest">
<directory>unit/models</directory>
</testsuite>
<testsuite name="ControllersTest">
<directory>unit/controllers</directory>
</testsuite>
</testsuites>
<!--
ログ設定
coverage-html:カバレッジをHTMLで出力
coverage-clover:テスト結果からXML形式のログファイルを生成
coverage-text:プロンプトにカバレッジ率を出力
-->
<logging>
<log type="coverage-html" target="report"
charset="UTF-8" yui="true" highlight="false" lowUpperBound="30" highLowerBound="80"/>
<log type="coverage-text" target="php://stdout" lowUpperBound="30" highLowerBound="80"/>
</logging>
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment