如何将 Devel::Cover 与证明一起使用? [英] How to use Devel::Cover with prove?
本文介绍了如何将 Devel::Cover 与证明一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看到这里和 http://www.perlmonks.org 上有一些类似的问题,但我仍然不明白.想象一下,我有一个带有lib/"和t"目录的项目.我用证明"运行我的测试:
I see there are some similar questions here and on http://www.perlmonks.org but I still do not get it. Imagine I have a project with a 'lib/' and a 't' directories. I run my tests with 'prove':
$ cd $PROJECT_ROOT
$ prove ./*.t
我想为lib/"目录中的一个或多个文件获取一份 html 报告.我不想要't' 目录中文件的报告.一个简单的例子就足够了.谢谢
I want to get a report in html for one or more files in the 'lib/' directory. I do not want reports for the files in the 't' directory. A simple example should be enough. Thanks
推荐答案
perl Makefile.PL
或perl Build.PL
cover -test
这篇关于如何将 Devel::Cover 与证明一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文