Test::TAP - Test your TAP


Test-TAP documentation  | view source Contained in the Test-TAP distribution.

Index


NAME

Top

Test::TAP - Test your TAP

VERSION

Top

Version 0.03

SYNOPSIS

Top

 use Test::TAP;

 is_passing_tap $tap1, 'TAP tests passed';
 is_failing_tap $tap2, 'TAP tests failed';

EXPORT

Top

* is_passing_tap
* is_failing_tap

DESCRIPTION

Top

Experimental module to tell if a TAP document is 'passing' or 'failing'. We'll add more later, but for the time being, this module is for TAP developers to experiment with.

TESTS

Top

is_passing_tap

 is_passing_tap <<'END_TAP', '... TAP tests passed';
 1..1
 ok 1 This test passed
 END_TAP

Test passes if the string passed if the following criteria are met:

* One plan

You must have one and only one plan. It may be at the beginning or end of the TAP, but not embedded. Plans found in nested TAP are acceptable.

* Correct plan.

Number of tests run must match the plan.

* No failing tests.

No 'not ok' tests may be found unless they are TODO tests.

is_failing_tap

 is_failing_tap <<'END_TAP', '... TAP tests passed';
 1..1
 not ok 1 This test passed
 END_TAP

AUTHOR

Top

Curtis "Ovid" Poe, <ovid@cpan.org>

BUGS

Top

Please report any bugs or feature requests to bug-test-tap@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-TAP. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SEE ALSO

Top

Test::Simple, TAP::Harness

ACKNOWLEDGEMENTS

Top

COPYRIGHT & LICENSE

Top


Test-TAP documentation  | view source Contained in the Test-TAP distribution.