我在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
测试脚本的一部分运行时,必须缺少一些设置,但我找不到任何有效的设置。我在网上找不到任何与此错误类似的内容。
感谢您的帮助。