What are some code coverage tools for Perl?

后端 未结 4 1124
谎友^
谎友^ 2020-12-29 06:48

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

4条回答
  •  猫巷女王i
    2020-12-29 06:55

    Yes, Devel::Cover is the way to go.

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

     perl Build.PL
     ./Build testcover
    

    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.

提交回复
热议问题