Perl testing info links Perl's "Test::More" and "WWW::Mechanize" to test a web site. *[X]* https://github.com/keeth/Net-OAuth/tree/master/t - examples to view * "Test::More":http://search.cpan.org/dist/Test-Simple/lib/Test/More.pm ** https://metacpan.org/module/Test::More * "Test::Tutorial":http://search.cpan.org/~rgarcia/perl-5.10.0/lib/Test/Tutorial.pod * "Test::Simple":http://search.cpan.org/~mschwern/Test-Simple-0.98/lib/Test/Simple.pm * "WWW::Mechanize":http://search.cpan.org/~petdance/WWW-Mechanize-1.66/lib/WWW/Mechanize.pm * "WWW::Mechanize::Examples":http://search.cpan.org/~petdance/WWW-Mechanize-1.66/lib/WWW/Mechanize/Examples.pod#___top * "Automating Testing with Test::More":http://perlmeme.org/tutorials/writing_test_harness.html * Book : "Perl Testing: A Developer's Notebook":http://www.amazon.com/Perl-Testing-Developers-Ian-Langworth/dp/0596100922/ref=sr_1_1?s=books&ie=UTF8&qid=1381448543&sr=1-1&keywords=Perl+Testing%3A+A+Developer%27s+Notebook * http://blogs.perl.org/users/david_cantrell/2013/10/software-test-podcast.html * "CGI::Test":http://search.cpan.org/~mshiltonj/CGI-Test-0.104/Test.pm * "HTTP::Cookies":http://search.cpan.org/~gaas/HTTP-Cookies-6.01/lib/HTTP/Cookies.pm * "HTTP::UserAgent":http://search.cpan.org/~gaas/libwww-perl-6.05/lib/LWP/UserAgent.pm hr. At command prompt in Junco code directory, one up from the testing 't' subdirectory, do the following to execute all the test .t scripts: @prove t@ Read more about "prove" in the "Test::Harness":http://perldoc.perl.org/5.10.0/Test/Harness.html module. http://search.cpan.org/~ovid/Test-Harness-3.29/bin/prove hr. * https://metacpan.org/module/Log::Log4perl - powerful logging API for your application ** Log::Log4perl lets you remote-control and fine-tune the logging behaviour of your system from the outside. It implements the widely popular (Java-based) Log4j logging package in pure Perl. http://blogs.perl.org/users/ovid/2013/03/discoverable-tests-and-creating-testing-standards.html http://modernperlbooks.com/mt/2012/08/why-i-use-perl-testing.html http://www.distinctquality.com/blog/2007/01/30/automated-testing-with-perl/ br. "Unit Testing CGI Programs":http://www.perlmonks.org/?node_id=243173 http://search.cpan.org/~rgarcia/perl-5.10.0/lib/Test/Tutorial.pod http://search.cpan.org/~thaljef/Test-Perl-Critic-1.02/lib/Test/Perl/Critic.pm http://search.cpan.org/~dwheeler/Test-Pod-1.48/lib/Test/Pod.pm http://search.cpan.org/~pjcj/Devel-Cover-1.08/lib/Devel/Cover.pm http://search.cpan.org/~mschwern/Test-Simple-0.98/lib/Test/Simple.pm http://perldoc.perl.org/Test/More.html http://en.wikipedia.org/wiki/Test::More http://search.cpan.org/dist/Test-Simple/lib/Test/More.pm http://search.cpan.org/~ovid/Test-Harness-3.29/lib/Test/Harness.pm http://perlmeme.org/tutorials/writing_test_harness.html http://www.thegeekstuff.com/2013/08/perl-test-more-examples/ http://jothut.com/cgi-bin/junco.pl/blogpost/301/17May2013/Test-Automation-using-Perl Testing a (Perl) Web application without a lot of setup http://szabgab.com/testing-a-perl-web-application-without-a-lot-of-setup.html 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/~ilyam/HTTP-WebTest-2.04/lib/HTTP/WebTest.pm http://search.cpan.org/~ilyam/HTTP-WebTest-2.04/lib/HTTP/WebTest/Cookbook.pod http://search.cpan.org/~ether/WWW-Mechanize-1.73/lib/WWW/Mechanize.pm http://search.cpan.org/~petdance/WWW-Mechanize-1.66/lib/WWW/Mechanize/Examples.pod#___top http://docs.seleniumhq.org/ http://search.cpan.org/~mattp/Test-WWW-Selenium-1.36/lib/WWW/Selenium.pm http://stackoverflow.com/questions/1747772/integration-testing-for-a-web-app 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