Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Test Automation with Perl

via YouTube

Overview

Dive into Perl test automation techniques in this comprehensive 90-minute tutorial. Learn to use Test::Simple for basic Perl program testing, then progress to refactoring large test suites by separating data from code. Explore test plans, descriptions, and status checks. Discover how to test without a plan and use the 'prove' harness. Transition to Test::More for advanced features, including diagnostic messages with diag, note, and explain. Master TODO testing for bugs and future features, 'like' for inexact value comparisons, and timeout testing with cmp_ok. Compare complex data structures using is_deeply and implement done_testing. Develop skills in testing multiple expected values, creating custom test modules, and organizing scripts with subtests. Finally, learn to test for expected warnings and explore Moose constructor testing.

Syllabus

Introducing Test::Simple for testing Perl programs.
Refactoring large test suite in Perl, separating data from code.
Test plan and test descriptions.
What is the status of the current test script?.
Test without a plan.
Separating test data from test code.
prove the harness.
Moving over to Test::More.
Perl Test diagnostic messages using diag, note, and explain.
TODO - testing a bug or a future feature in Perl.
Using 'like' to test without exact values in Perl.
Testing timeout in Perl with cmp_ok.
Comparing complex data structures in Perl with is_deeply.
Forget your plan, just call done_testing.
Multiple expected values - testing dice.
Implementing 'is_any' to test multiple expected values.
Create a test module in Perl for the is_any function.
Organizing a test script with subtests in Perl.
Test for expected warnings in your Perl code.
Moose: Testing the constructor.

Taught by

Code Maven

Reviews

Start your review of Test Automation with Perl

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.