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. Another example
  13. cmp_ok( this, op, that, name);
  14. is_deeply( complex_structure, expected_complex structure, name);
  15. is_deeply on a hash
  16. Platform dependent tests
  17. SKIP some tests
  18. Stop running current test script
  19. Stop all the test scripts
  20. Stop testing - with harness
  21. Exercises
  22. Test coverage using Devel::Cover
  23. Can module be loaded? use_ok and require_ok
  24. can_ok('Class', qw(method_a method_b));
  25. Declare your plan at excution time
  26. Test blocks (use subtest instead)
  27. Counting tests in the small blocks (use subtest instead)
  28. subtest with plan
  29. done_testing
  30. subtest with implicit done_testing
  31. skip all
  32. All the tests
  33. Exercise: skip test
  34. Exercise: use coverage

comments powered by Disqus