Introducing Test::Simple for testing Perl programs
2
Refactoring large test suite in Perl, separating data from code
3
Test plan and test descriptions
4
What is the status of the current test script?
5
Test without a plan
6
Separating test data from test code
7
prove the harness
8
Moving over to Test::More
9
Perl Test diagnostic messages using diag, note, and explain
10
TODO - testing a bug or a future feature in Perl
11
Using 'like' to test without exact values in Perl
12
Testing timeout in Perl with cmp_ok
13
Comparing complex data structures in Perl with is_deeply
14
Forget your plan, just call done_testing
15
Multiple expected values - testing dice
16
Implementing 'is_any' to test multiple expected values
17
Create a test module in Perl for the is_any function
18
Organizing a test script with subtests in Perl
19
Test for expected warnings in your Perl code
20
Moose: Testing the constructor
Description:
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.