1

有没有办法从 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 只需为要显示的信息创建一个模板。

4

0 回答 0