Perl 有 jUnit 吗?
我已经使用 OO Perl 创建了一些业务类,并且我想确保在更改代码时不会破坏它们。听起来单元测试是正确的选择。
Perl 有类似 jUnit 的东西吗?
请随意详细说明您如何在 Perl 项目中实现单元测试。
I've created some business classes using OO Perl and I want to make sure I don't break them when I change the code. Sounds like unit testing is the way to go.
Is there anything like jUnit for Perl?
Feel free to elaborate on how you've implemented unit testing in Perl projects.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Test::Class
Test::Class 是一个 xUnit /jUnit 风格的测试框架。请注意,它仅提供框架,但它是基于常见的 Perl 测试后端
Test::Builder
构建的。这意味着 Perl 的所有其他扩展测试框架(位于 Test::* 命名空间中)也可供您使用。Test::Simple
和Test::More
可以帮助您开始,但是还有很多很多其他测试根据您的应用程序可用的库。Test::Class
Test::Class is a xUnit/jUnit style framework for testing. Note that it only provides the framework, but it builds off of
Test::Builder
, the common perl testing backend. This means all of Perl's extensive other test frameworks (which lie in the Test::* namespace) are available to you as well.Test::Simple
andTest::More
can get you started, but there are many, many other testing libraries available for you based on your app.您可能还对此问题的回答感兴趣:我该怎么办Perl 中的单元测试?
You may also be interested in the responses to this question: How can I do unit testing in Perl?
肯定有:http://perlunit.sourceforge.net/
There sure is : http://perlunit.sourceforge.net/
最终列表(所有语言)位于:
http://www.xprogramming.com/software.htm
(哇,他们真的需要更新他们的样式表)。
Perl 似乎有几个。
The ultimate list (for all languages) is at:
http://www.xprogramming.com/software.htm
(wow, they really need to update their stylesheet).
It appears that there are several for Perl.