Previous Entry Add to Memories Share Next Entry
Perl Testing Stuff
Mechanical
publius_ovidius

If you're not a Perl geek into testing, this won't make sense to you. I've posted this here for them to see since I can control the formatting here.

Here's the output from the latest version of my TAPx::Parser software, a testing tool designed to replace Test::Harness and the prove utility bundled with it.

work $ runtests -lcq
t/00-load..................ok     
t/cp_demo_lib..............ok   
t/cp_lib...................ok     
t/db_connection............ok   
t/dh_password..............ok   
t/dh_server................Failed 1/61 tests
t/domain_lib...............ok     
t/datacentre_install.......ok     
t/install_sql..............ok     
t/general_lib..............ok     
t/order_lib................ok       
t/platform_utils...........ok   
t/pod-coverage.............ok     
t/pod......................ok     
t/reset_vars...............ok     
t/rpc_action...............ok   
t/rpc_dedserver............ok     
t/server_stock_manager.....ok     
t/sql_stripper.............ok     
t/template_tree_process....ok     
t/test_class_tests.........Failed 2/186 tests
        (less 1 skipped test: 183 okay)

Test Summary Report
-------------------
t/dh_server.t                 (Wstat: 256 Tests: 61 Failed: 1)
  Failed tests:  52
t/pod-coverage.t              (Wstat: 0 Tests: 42 Failed: 0)
  Tests skipped: 3, 8, 34, 37
t/test_class_tests.t          (Wstat: 512 Tests: 186 Failed: 2)
  Failed tests:  2, 5
  Tests skipped: 3
Files=21, Tests=859, 32 wallclock secs (12.82 cusr +  2.90 csys = 15.72 CPU)

Nice. Viewer friendliness in output, what a concept.

No snark aimed at you, btw. Last week I had a similar arguement about error messages with one of our staffers here. I won the moral victory, he didn't change the code. Sigh.

egads - what are you trying to do, blind us with color?

verbosity is not a sin, but with my poor eyes this morning the red against the green appears to be in 3d -- hovering just above the green. :)

well, that and sql stripper just sounds naughty :)

is there an option for a reason the test failed -- human readable?

Yes. The '-c' switch, if removed, disables 'color'. The '-q' switch, if removed, disables 'quiet' (which is what you're asking about). The quiet mode suppresses a bunch of noisy output that you don't care about unless tests are failing.

And this is a development version on the CPAN, so if you are interested, you'll have to fetch it directly because CPAN and CPANPLUS will not automatically install those.

i am interested -- but it will have to wait a few weeks ... i have 3 products to get finished before a trade show at the end of the month.

as i was reminded last night, at least this job doesn't go to CES :)

(though i do miss the honor of winning best in show)