Does anyone know of a good Perl unit test generator?
-
Does anyone know of a good Perl unit test generator?
-
Answer:
Not sure what you're asking, but most people write tests with http://search.cpan.org/perldoc?Test::More or http://search.cpan.org/perldoc?Test::Class. You then run these tests with the prove command included with Perl (actually, with Test::Harness). Example test: # foo.t use strict; use warnings; use Test::More tests => 1; ok( 1 == 1, 'is one one?' ); Running this: $ prove foo.t foo....ok All tests successful. Files=1, Tests=1, 0 wallclock secs ( 0.01 usr 0.01 sys + 0.03 cusr 0.00 csys = 0.05 CPU) Result: PASS
Neer at Stack Overflow Visit the source
Other answers
EDIT: (Thanks to commentors) My original suggestion of PerlUnit is deprecated. Use http://search.cpan.org/perldoc?Test::Class instead. Original Post: You could try http://perlunit.sourceforge.net/. There is also a book chapter on unit testing in Perl: http://www.extremeperl.org/bk/unit-testing
Colin
If you're going to test web apps, http://seleniumhq.com allows you to do stuff in firefox and have it automatically be recorded as an equivalent set of Perl (or other language) tests. While it doesn't test everything, it is good for testing the user experience.
ysth
Related Q & A:
- Does anyone know of a good car insurance company with reasonable prices?Best solution by thetoptens.com
- Does anyone know of a good plastic surgeon in nice?Best solution by Yahoo! Answers
- Does anyone know of a good IT recruiter in Manhattan?Best solution by Yahoo! Answers
- Does anyone know of a good English to Vietnamese electronic dictionary?Best solution by imtranslator.net
- I need a nice, comfortable, and spacious backpack . Anyone know of a good one.Best solution by answers.yahoo.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.