Getting the Most Out of TAP {{#q|Nathan Gray}} ---- http://testanything.org ---- Test Anything Protocol ---- 1..3 ---- ok 1 - description of test ---- not ok 2 - description of test ---- # Failed test '2+2 = 5' # got: '5' # expected: '4' ---- not ok 3 - description of test # TODO description ---- Test.pm ---- Test::Debugger ---- log_file => 'test.log' ---- t/debugger.t 3 FAILED. 2+2 = 5 ### Expected ### 5 ### Actual Results ### 4 ---- Test::More ---- Test.pm (pugs) ---- Test::TAP::HTML::Matrix ---- Test::Harness ---- TAP::Harness TAP::Parser TAP::Formatter ---- TAP::Formatter::HTML ---- Generating TAP ---- Test::More ---- use Test::More tests => 3; ---- 1..3 ---- is(1, 1, 'description of test'); ---- ok 1 - description of test ---- TODO: { local $TODO = 'description' is(0, 1, 'description of test') } ---- not ok 3 - description of test # TODO description ---- Test.pm ---- plan 3; ---- 1..3 ---- is(1, 1, 'description of test'); ---- ok 1 - description of test ---- todo 'description' is(0, 1, 'description of test') ---- not ok 3 - description of test # TODO description ---- Running Tests ---- make test ---- prove t/*.t ---- prove --formatter TAP::Formatter::Console t/*.t ---- t/perl5.t .. 1/3 # Failed test '2+2 = 5' # at t/perl5.t line 6. # got: '5' # expected: '4' # Looks like you failed 1 test of 3. {{#c|t/perl5.t .. Dubious, test returned 1 (wstat 256, 0x100)}} {{#c|Failed 1/3 subtests}} ---- prove --formatter TAP::Formatter::File t/*.t ---- # Failed test '2+2 = 5' # at t/perl5.t line 6. # got: '5' # expected: '4' # Looks like you failed 1 test of 3. t/perl5.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests ---- prove --formatter TAP::Formatter::HTML t/*.t ---- TAP::Formatter::Console TAP::Formatter::File TAP::Formatter::HTML TAP::Formatter::JUnit TAP::Formatter::TextMate ---- {{#q|Thank you!}} {{#c|☺}} ----