Perl有哪些代码覆盖工具? [英] What are some code coverage tools for Perl?

查看:70
本文介绍了Perl有哪些代码覆盖工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有用于Perl的好的(最好是免费的)代码覆盖工具?

Are there any good (and preferably free) code coverage tools out there for Perl?

推荐答案

是的, Devel :: Cover 是必经之路。

如果您开发模块,并使用 Module :: Build 来管理安装,甚至有一个 testcover 目标:

If you develop a module, and use Module::Build to manage the installation, you even have a testcover target:

 perl Build.PL
 ./Build testcover

这将运行整个测试套件,并在精美的HTML,您可以在其中浏览模块并观看其内容。

That runs the whole test suite, and makes a combined coverage report in nice HTML, where you can browse through your modules and watch their coverage.

这篇关于Perl有哪些代码覆盖工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆