Test::More
- Moving over to Test::More
- Test::Simple ok( trueness, name);
- Test::More ok( trueness, name);
- Test::More is( value, expected_value, name);
- Test::More isnt( value, not_expected_value, name);
- Test::More isnt undef
- note( message ) or diag( message );
- (note or diag) explain( a_variable );
- TODO
- TODO Verbose output
- TODO: unexpected success
- TODO: unexpected success (the code)
- MyTools with various functions
- like(value, qr/expected regex/, name);
- like(value, qr/expected regex/, name);
- Another example with like
- cmp_ok( this, op, that, name);
- is_deeply( complex_structure, expected_complex_structure, name);
- Function returning data from bug-tracker
- is_deeply on a hash
- Platform dependent tests
- SKIP some tests
- locale
- Stop running current test script
- Stop all the test scripts
- Exercises
- Test coverage using Devel::Cover
- Test coverage report example
- Declare your plan at execution time
- done_testing
- plan tests, no_testing, done_testing
- Compute test plan
- subtest with plan
- subtest with implicit done_testing
- subtest to restrict scope
- skip all
- Exercise: skip test
- Exercise: use coverage
- Test blocks (use subtest instead)
- Counting tests in the small blocks (use subtest instead)