./Build testcover失败

时间:2018-07-19 17:31:46

标签: testing perl-module

我在Mac OS High Sierra上使用Perl 5.26。

我使用module-starter使用Perl的Build.PL命令创建了一个模块。我在/t目录中创建了一个使用Test::More的测试文件。使用命令./Build test通过所有测试。使用命令Devel::Cover运行时,覆盖率测试将使用cover -test进行工作。但是,当我尝试使用./Build testcover模块中记录的Devel::Cover时,它以以下形式的错误而失败:

Devel::Cover: Warning: can't open Specio::Coercion->_coercion for MD5 digest: No such file or directory
Devel::Cover: Can't find file "Specio::Coercion->_coercion" (Specio::Coercion->_coercion): ignored.

由于Devel::Cover在单独运行时可以工作,因此作为Build测试脚本的一部分运行时,必须缺少一些设置,但我找不到任何有效的设置。我在网上找不到任何与此错误类似的内容。

感谢您的帮助。

0 个答案:

没有答案