在 phpdoc 输出中包括 phpunit 代码覆盖率
过去,我一直使用 phpdoc、phpunit(使用 xdebug 生成代码覆盖率)和 pdepend 来生成文档和代码指标。我不禁觉得事情看起来有点脱节。理想情况下,我希望将代码覆盖率报告、测试结果和指标与 phpdoc 输出集成到一处。我没有使用任何 CI 系统。
有什么可以帮助我实现我想做的事情,或者我基本上需要开始破解 phpdoc 和/或 smarty 模板吗?
For the past while I've been using phpdoc, phpunit (with xdebug for code coverage generation) and pdepend to produce documentation and code metrics. I can't help but think that things look a bit disjointed. Ideally I'd like to integrate the code coverage reports, test results and metrics together in one place — with the phpdoc output. I'm not using any CI system.
Is there anything that can help me achieve what I want to do or do I basically need to start hacking away at phpdoc and/or smarty templates?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为没有一个工具可以将 phpdoc 和 phpunit 代码覆盖率结合起来。
对于其他工具,您可以查看“phpcb” - PHP 代码浏览器。
它将结合“PHP Code Sniffer”、“PHP Mess Detector”和 PHPUnits“CRAP”索引的结果,为您提供一个源代码浏览器,您可以在一个位置查看代码和所有错误。
示例项目的屏幕截图:
I don't think there is a tool for combining phpdoc and the phpunit code coverage.
For the other tools you can check out "phpcb" - The PHP Code Browser.
It will combine the result from "PHP Code Sniffer", "PHP Mess Detector" and PHPUnits "CRAP" index by giving you a source code browser where you can look at the code an all the errors in one place.
Screenshots from a sample project: