HTML::TestingHTML::Testing is a test module to make test files simpler. | |
Download |
HTML::Testing Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Frederick Hirsch
- Publisher web site:
- http://search.cpan.org/~fjh/FormatNroff-0.11/Testing.pm
HTML::Testing Tags
HTML::Testing Description
HTML::Testing is a test module to make test files simpler. HTML::Testing is a test module to make test files simpler.SYNOPSISA test file, simple.t may be created as follows: print "1..1n"; use strict; require HTML::FormatNroff; use HTML::Parse; require HTML::Testing; my $man_date = '20 Dec 97'; my $name = "simple"; my $html_source =This is the body. < /HTML > END_INPUT my $expected = ".TH "$name" "1" "$man_date" "FormatNroff" n"; $expected .= $man_date, project => 'FormatNroff', man_header => 1, expected => $expected, html_source => $html_source output => 'TestOutput', ); $tester->run_test(); 1;Running the test harness with this will result in the creation of the files simple_expected.out, simple_actual.out and an html file corresponding to the html_source (simple.html). In addition, the test will return 'ok' if they are the same, and 'not ok' if not.If the attribute html_file is specified, then html will be sourced from that file instead of html_source, and no html file will be created. Requirements: · Perl
HTML::Testing Related Software