Reputation: 326
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.
Upvotes: 9
Views: 2864
Reputation: 15968
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
and Test::More
can get you started, but there are many, many other testing libraries available for you based on your app.
Upvotes: 12
Reputation: 25523
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.
Upvotes: 3
Reputation: 110499
You may also be interested in the responses to this question: How can I do unit testing in Perl?
Upvotes: 8