Test::More

  1. Moving over to Test::More
  2. Test::Simpler ok( trueness, name);
  3. Test::More ok( trueness, name);
  4. Test::More is( value, expected_value, name);
  5. Test::More isnt( value, not_expected_value, name);
  6. Test::More isnt undef
  7. note( message ) or diag( message );
  8. (note or diag) explain( a_variable );
  9. TODO
  10. TODO Verbose output
  11. TODO: unexpected success
  12. TODO: unexpected success (the code)
  13. MyTools with various functions
  14. like(value, qr/expected regex/, name);
  15. like(value, qr/expected regex/, name);
  16. Another example with like
  17. cmp_ok( this, op, that, name);
  18. is_deeply( complex_structure, expected_complex structure, name);
  19. is_deeply on a hash
  20. Platform dependent tests
  21. SKIP some tests
  22. SKIP with locale
  23. Stop running current test script
  24. Stop all the test scripts
  25. Exercises
  26. Test coverage using Devel::Cover
  27. Declare your plan at execution time
  28. Test blocks (use subtest instead)
  29. Counting tests in the small blocks (use subtest instead)
  30. subtest with plan
  31. done_testing
  32. subtest with implicit done_testing
  33. skip all
  34. Exercise: skip test
  35. Exercise: use coverage