得到一个正确的报告phpUnit

时间:2013-08-22 12:27:42

标签: phpunit report

有没有办法从phpUnit测试中获取propper日志?在帮助手册中有几个选项

  --log-junit <file>        Log test execution in JUnit XML format to file.
  --log-tap <file>          Log test execution in TAP format to file.
  --log-json <file>         Log test execution in JSON format.

  --coverage-clover <file>  Generate code coverage report in Clover XML format.
  --coverage-html <dir>     Generate code coverage report in HTML format.
  --coverage-php <file>     Serialize PHP_CodeCoverage object to file.
  --coverage-text=<file>    Generate code coverage report in text format.

  --testdox-html <file>     Write agile documentation in HTML format to file.
  --testdox-text <file>     Write agile documentation in Text format to file.

现在,我得到--coverage-html / tmp / report工作,它会生成一个不错的html报告,但它是空的。如何填写有关测试的数据?因为如果我理解正确,那么coverage-html就会为要显示的信息创建一个模板。

0 个答案:

没有答案