Andy Armstrong wrote:
On 20 Nov 2007, at 23:39, Michael G Schwern wrote:
Do we like that?

Test::Harness 2 put it on it's own line mostly to avoid wrapping off the right
side of the screen.  I still lean in that direction.

Hmm. I'm kind of hooked on the new behaviour now. It puts a summary column right where I can find it.

Maybe this is one of those 80 columns vs 120 columns things, but let's compare.

Here's the Test::More suite with TH 2.64.

t/00test_harness_check..........ok
t/bad_plan......................ok
t/bail_out......................ok
t/BEGIN_require_ok..............ok
t/BEGIN_use_ok..................ok
t/buffer........................ok
t/Builder.......................ok
t/carp..........................ok
t/circular_data.................ok
t/cmp_ok........................ok
t/create........................ok
t/curr_test.....................ok
t/details.......................ok
t/diag..........................ok
t/dont_overwrite_die_handler....ok
t/eq_set........................ok
t/exit..........................ok
t/extra.........................ok
t/extra_one.....................ok
t/fail-like.....................ok
t/fail-more.....................ok
t/fail..........................ok
t/fail_one......................ok
t/filehandles...................ok
t/fork..........................ok
t/harness_active................ok
t/has_plan......................ok
t/has_plan2.....................ok
t/import........................ok
t/is_deeply_dne_bug.............ok
t/is_deeply_fail................ok
t/is_deeply_with_threads........skipped
        all skipped: many perls have broken threads.  Enable with 
AUTHOR_TESTING.
t/is_fh.........................ok
t/maybe_regex...................ok
        3/16 skipped: various reasons
t/missing.......................ok
t/More..........................ok
t/no_diag.......................ok
t/no_ending.....................ok
t/no_header.....................ok
t/no_plan.......................ok
t/ok_obj........................ok
t/output........................ok
t/overload......................ok
t/overload_threads..............ok
        1/5 skipped: various reasons
t/plan..........................ok
t/plan_bad......................ok
t/plan_is_noplan................ok
t/plan_no_plan..................ok
        1/6 skipped: various reasons
t/plan_shouldnt_import..........ok
t/plan_skip_all.................skipped
        all skipped: Just testing plan & skip_all
t/pod-coverage..................ok
t/pod...........................ok
t/require_ok....................ok
t/reset.........................ok
t/simple........................ok
t/skip..........................ok
        8/17 skipped: various reasons
t/skipall.......................ok
t/strays........................skipped
        all skipped: not completed
t/tbm_doesnt_set_exported_to....ok
t/tbt_01basic...................ok
t/tbt_02fhrestore...............ok
t/tbt_03die.....................ok
t/tbt_04line_num................ok
t/tbt_05faildiag................ok
t/tbt_06errormess...............ok
t/tbt_07args....................ok
t/thread_taint..................ok
t/threads.......................ok
t/todo..........................ok
t/try...........................ok
t/undef.........................ok
t/use_ok........................ok
t/useing........................ok
t/utf8..........................ok
        2/5 skipped: various reasons
All tests successful, 3 tests and 15 subtests skipped.


And here it is with 3.10.

t/00test_harness_check............ok
t/bad_plan........................ok
t/bail_out........................ok
t/BEGIN_require_ok................ok
t/BEGIN_use_ok....................ok
t/buffer..........................ok
t/Builder.........................ok
t/carp............................ok
t/circular_data...................ok
t/cmp_ok..........................ok
t/create..........................ok
t/curr_test.......................ok
t/details.........................ok
t/diag............................ok
t/dont_overwrite_die_handler......ok
t/eq_set..........................ok
t/exit............................ok
t/extra...........................ok
t/extra_one.......................ok
t/fail-like.......................ok
t/fail-more.......................ok
t/fail............................ok
t/fail_one........................ok
t/filehandles.....................ok
t/fork............................ok
t/harness_active..................ok
t/has_plan........................ok
t/has_plan2.......................ok
t/import..........................ok
t/is_deeply_dne_bug...............ok
t/is_deeply_fail..................ok
t/is_deeply_with_threads..........skipped: many perls have broken threads. Enable with AUTHOR_TESTING.
t/is_fh...........................ok
t/maybe_regex.....................ok
t/missing.........................ok
t/More............................ok
t/no_diag.........................ok
t/no_ending.......................ok
t/no_header.......................ok
t/no_plan.........................ok
t/ok_obj..........................ok
t/output..........................ok
t/overload........................ok
t/overload_threads................ok
t/plan............................ok
t/plan_bad........................ok
t/plan_is_noplan..................ok
t/plan_no_plan....................ok
t/plan_shouldnt_import............ok
t/plan_skip_all...................skipped: Just testing plan & skip_all
t/pod-coverage....................ok
t/pod.............................ok
t/require_ok......................ok
t/reset...........................ok
t/simple..........................ok
t/skip............................ok
t/skipall.........................ok
t/strays..........................skipped: not completed
t/tbm_doesnt_set_exported_to......ok
t/tbt_01basic.....................ok
t/tbt_02fhrestore.................ok
t/tbt_03die.......................ok
t/tbt_04line_num..................ok
t/tbt_05faildiag..................ok
t/tbt_06errormess.................ok
t/tbt_07args......................ok
t/thread_taint....................ok
t/threads.........................ok
t/todo............................ok
t/try.............................ok
t/undef...........................ok
t/use_ok..........................ok
t/useing..........................ok
t/utf8............................ok
All tests successful.
Files=74, Tests=540, 4 wallclock secs ( 0.32 usr 0.36 sys + 2.80 cusr 0.93 csys = 4.41 CPU)
Result: PASS


One of the immediate differences is that TH 3 isn't nearly as chatty about individual skipped tests, which I like. But as you can see, the skip message of t/is_deeply_with_threads.t wraps off the right side. TH 2 does as well, but at least there's a bit more room.

One of the issues I was always fighting with TH 2's formatting was trying to cram everything into one line. Moving directive information onto it's own line eased that.


--
package Outer::Space;  use Test::More tests => 9;

Reply via email to