Test::More


  1. Moving over to Test::More
  2. Test::More ok( trueness, name);
  3. Test::More is( value, expected_value, name);
  4. Test::More isnt( value, not_expected_value, name);
  5. Test::More isnt undef
  6. diag( just_a_message );
  7. note( just_a_message );
  8. (note or diag) explain( just_a_variable );
  9. TODO
  10. TODO: unexpected success
  11. like(value, qr/expected regex/, name);
  12. like(value, qr/expected regex/, name);
  13. Another example
  14. cmp_ok( this, op, that, name);
  15. is_deeply( complex_structure, expected_complex structure, name);
  16. is_deeply on a hash
  17. Platform dependent tests
  18. SKIP some tests
  19. Stop running current test script
  20. Stop all the test scripts
  21. Stop testing - with prove
  22. Exercises
  23. Test coverage using Devel::Cover
  24. Can module be loaded? use_ok and require_ok
  25. can_ok('Class', qw(method_a method_b));
  26. Declare your plan at excution time
  27. Test blocks (use subtest instead)
  28. Counting tests in the small blocks (use subtest instead)
  29. subtest with plan
  30. done_testing
  31. subtest with implicit done_testing
  32. skip all
  33. All the tests
  34. Exercise: skip test
  35. Exercise: use coverage

comments powered by Disqus