Perl testing info links


Testing a (Perl) Web application without a lot of setup
http://szabgab.com/testing-a-perl-web-application-without-a-lot-of-setup.html


Perl's "Test::More" and "WWW::Mechanize" to test a web site.


http://stackoverflow.com/questions/4017103/how-can-i-automate-website-testing-with-perl

q.
However, there are non-http approaches to testing Perl side code of the web apps as well:

Have all non-presentation logic nicely modularized away, and test it as usual using Test::More or your other favorite test frameworks.

Test presentation (or presentation+logic) by using your web framework in command line mode, emulating running on web server. CGI.pm allows that, as well as EmbPerl. Not sure about Catalyst apps.
q..


http://search.cpan.org/~ether/WWW-Mechanize-1.73/lib/WWW/Mechanize.pm

http://search.cpan.org/~mattp/Test-WWW-Selenium-1.36/lib/WWW/Selenium.pm

http://search.cpan.org/~gaas/libwww-perl-6.05/lib/LWP/Simple.pm




http://testanything.org/wiki/index.php/Main_Page
http://en.wikipedia.org/wiki/Test_Anything_Protocol

https://metacpan.org/module/PETDANCE/Test-Harness-2.64/lib/Test/Harness/TAP.pod

http://perlunit.sourceforge.net

http://www.cpantesters.org

http://c2.com/cgi/wiki?PerlUnit

http://www.extremeperl.org/bk/unit-testing

http://search.cpan.org/~mcast/Test-Unit-0.25/lib/Test/Unit.pm

http://www.perlmonks.org/?node_id=469927

*[X]* http://perldoc.perl.org/Test/More.html

*[X]* http://stackoverflow.com/questions/502644/how-can-i-do-unit-testing-in-perl

q.
I'd add my vote to picking up Test::More before going any further in Perl testing. The Perl testing community is fairly well united around the Test Anything Protocol, and you'll want to play around with Test::More to understand how it works and how tools like prove and Test::Harness::Archive can help automate and distribute testing.

If you want to just "jump right in", I think Test::Class provides xTest facilities with a TAP backend. I haven't used it at all (I'm a Test::More person myself), but it's very highly rated.
q..

http://stackoverflow.com/questions/499967/how-do-i-determine-the-longest-similar-portion-of-several-strings/500518#500518

*[X]* http://stackoverflow.com/questions/533553/perl-build-unit-testing-code-coverage-a-complete-working-example

http://stackoverflow.com/questions/468675/how-can-i-test-a-standalone-perl-script

http://www.perl.com/pub/2001/12/04/testing.html

http://search.cpan.org/dist/Test-Class

http://search.cpan.org/dist/Test-Simple

http://search.cpan.org/dist/Test-Harness

http://xprogramming.com/articles/manual-testing-does-exist-and-it-is-bad/

http://www.developsense.com/blog/2013/02/manual-and-automated-testing/


#programming - #perl - #testing