perl - 需要 Perl 模块 Test::Simple 吗?

标签 perl unit-testing

我不明白。有一个很棒的模块Test::More女巫是 Perl 发行版的一部分。但有时在某些 Perl 模块中有指向模块 Test::Simple 的链接。 .

Test::Simple 不是 Perl 发行版的一部分,因此要安装一些需要 Test::Simple 的模块,您应该首先安装 Test::Simple。

有什么理由使用 Test::Simple 而不是 Test::More?

PS 例如,Test::Simple 依赖写入文件https://metacpan.org/source/MMIMS/Net-Twitter-4.00007/META.yml

最佳答案

Test::Simple是核心发行版的一部分,所以不需要安装它:

corelist Test::Simple

Test::Simple was first released with perl v5.6.2

以下是 POD 的引述:

This module is by no means trying to be a complete testing system. It's just to get you started. Once you're off the ground its recommended you look at Test::More.

关于perl - 需要 Perl 模块 Test::Simple 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19168449/

相关文章:

perl - xml 格式变化时的 xpath 查询

arrays - 这是 CPAN Uniq 模块中的错误吗?

javascript - 单元测试 void 方法 - Jasmine、javascript

javascript - 跨页面加载测试 JavaScript 函数

c# - WPF MVVM Light 单元测试 ViewModels

python - 我需要一个带有 Nose 的python单元测试sqlalchemy模型的样本

c# - NUnit:如何只运行具有特定属性(优先级或类型)的测试

perl - 如何使用 postgres dbd 占位符作为数据库对象名称

perl - 如何提取美国国防部契约(Contract)信息以用于统计分析?

perl - 在 Perl 中,如何处理整个哈希?