Test::Helper

Easy creation of test scripts
Download

Test::Helper Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jesse N. Glick
  • Publisher web site:
  • http://search.cpan.org/~jglick/

Test::Helper Tags


Test::Helper Description

Easy creation of test scripts Enclose the body of your test script within a test block. Within that block, run individual tests with the ok function, which should be passed a scalar that you desire to be true; this will print "not ok number" or "ok number" as appropriate. Similarly, the runs command will expect its body not to signal an error when run; use it with ok, negated or not.Note that the test block keeps track of how many tests there are and outputs the first line accordingly (it stores up the messages); if an uncaught exception is raised within the body, it simulates one last failed test and propagates the exception in order to ensure that it is counted as a failure. comm just writes out a comment to the standard output where it will be visible in verbose testing mode. syntax_check checks the syntax of modules and scripts listed in the MANIFEST.SYNOPSIS use Test::Helper; test { comm 'Doing first part of test'; ok $variable==$correct_value; ok not runs {this_should_die()}; }; Requirements: · Python


Test::Helper Related Software