Pistol
Pistol

Reputation: 326

Is there a jUnit for 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.

Upvotes: 9

Views: 2864

Answers (4)

Robert P
Robert P

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

TrueWill
TrueWill

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

Adam Bellaire
Adam Bellaire

Reputation: 110499

You may also be interested in the responses to this question: How can I do unit testing in Perl?

Upvotes: 8

Jay
Jay

Reputation: 5043

There sure is : http://perlunit.sourceforge.net/

Upvotes: 6

Related Questions