Hi Andy,
Thanks for the prompt response. Can confirm that --dry works fine.
Unfortunately I don't think you've fixed the problem with -r:
(1) ~/CPAN/Test-Harness-3.09> PERL5LIB=blib/lib perl ./bin/prove -r -D
t/000-load.t
...
t/yamlish.t
(2) ~/CPAN/Test-Harness-3.09> PERL5LIB=blib/lib perl ./bin/prove -r -D .
./examples/t/10-stuff.t
./examples/t/ruby.t
./t/000-load.t
...
./t/yamlish.t
./xt/author/pod-coverage.t
./xt/author/pod.t
./xt/author/stdin.t
./xt/perls/harness_perl.t
I expect (1) to run the same tests as (2).
I also discovered that the --state option doesn't seem to play well
combined with -r . :
(3) ~/CPAN/Test-Harness-3.09> PERL5LIB=blib/lib perl ./bin/prove -r
--state=save .
./examples/t/10-stuff...............1/?
# Failed test 'this is_deeply test fails'
# in ./examples/t/10-stuff.t at line 7.
# Structures begin differing at:
# $got->[0] = '2'
# $expected->[0] = '3'
# Looks like you failed 1 test of 6.
./examples/t/10-stuff............... Dubious, test returned 1 (wstat 256,
0x100)
Failed 1/6 subtests
(less 2 skipped subtests: 3 okay)
(1 TODO test unexpectedly succeeded)
./examples/t/ruby...................Undefined subroutine &main::puts called
at ./examples/t/ruby.t line 1.
./examples/t/ruby................... Dubious, test returned 255 (wstat
65280, 0xff00)
No subtests run
./t/000-load........................59/60 # Testing Test::Harness 3.09,
Perl 5.008008, /opt/perl/5.8.8/bin/perl
./t/000-load........................ok
./t/aggregator......................ok
./t/bailout.........................ok
./t/base............................ok
./t/callbacks.......................ok
./t/compat/env......................ok
./t/compat/failure..................ok
./t/compat/inc-propagation..........ok
./t/compat/inc_taint................ok
./t/compat/nonumbers................ok
./t/compat/regression...............ok
./t/compat/test-harness-compat......ok
./t/compat/version..................ok
./t/console.........................ok
./t/errors..........................ok
./t/grammar.........................ok
./t/harness.........................ok
./t/iterators.......................ok
./t/multiplexer.....................ok
./t/nofork-mux......................ok
./t/nofork..........................ok
./t/parse...........................ok
./t/premature-bailout...............ok
./t/process.........................ok
./t/prove...........................ok
./t/proverc.........................ok
./t/proverun........................ok
./t/regression......................ok
./t/results.........................ok
./t/source..........................ok
./t/spool...........................ok
./t/state...........................ok
./t/streams.........................ok
./t/taint...........................ok
./t/testargs........................ok
./t/unicode.........................ok
./t/utils...........................ok
./t/yamlish-output..................ok
./t/yamlish-writer..................ok
./t/yamlish.........................ok
./xt/author/pod-coverage............ok
./xt/author/pod.....................ok
./xt/author/stdin...................ok
./xt/perls/harness_perl.............skipped: no perls found in
'/usr/local/stow/'
Test Summary Report
-------------------
./examples/t/10-stuff.t (Wstat: 256 Tests: 6 Failed: 1)
Failed test: 2
TODO passed: 6
Non-zero exit status: 1
./examples/t/ruby.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
Files=46, Tests=10410, 30 wallclock secs ( 2.32 usr 1.35 sys + 13.38 cusr
11.14 csys = 28.19 CPU)
Result: FAIL
(4) ~/CPAN/Test-Harness-3.09> PERL5LIB=blib/lib perl ./bin/prove -r
--state=failed,save .
./examples/t/10-stuff...............1/?
# Failed test 'this is_deeply test fails'
# in ./examples/t/10-stuff.t at line 7.
# Structures begin differing at:
# $got->[0] = '2'
# $expected->[0] = '3'
# Looks like you failed 1 test of 6.
./examples/t/10-stuff............... Dubious, test returned 1 (wstat 256,
0x100)
Failed 1/6 subtests
(less 2 skipped subtests: 3 okay)
(1 TODO test unexpectedly succeeded)
./examples/t/ruby...................Undefined subroutine &main::puts called
at ./examples/t/ruby.t line 1.
./examples/t/ruby................... Dubious, test returned 255 (wstat
65280, 0xff00)
No subtests run
./t/000-load........................3/60 # Testing Test::Harness 3.09, Perl
5.008008, /opt/perl/5.8.8/bin/perl
./t/000-load........................ok
./t/aggregator......................ok
./t/bailout.........................ok
./t/base............................ok
./t/callbacks.......................ok
./t/compat/env......................ok
./t/compat/failure..................ok
./t/compat/inc-propagation..........ok
./t/compat/inc_taint................ok
./t/compat/nonumbers................ok
./t/compat/regression...............ok
./t/compat/test-harness-compat......ok
./t/compat/version..................ok
./t/console.........................ok
./t/errors..........................ok
./t/grammar.........................ok
./t/harness.........................ok
./t/iterators.......................ok
./t/multiplexer.....................ok
./t/nofork-mux......................ok
./t/nofork..........................ok
./t/parse...........................ok
./t/premature-bailout...............ok
./t/process.........................ok
./t/prove...........................ok
./t/proverc.........................ok
./t/proverun........................ok
./t/regression......................ok
./t/results.........................ok
./t/source..........................ok
./t/spool...........................ok
./t/state...........................ok
./t/streams.........................ok
./t/taint...........................ok
./t/testargs........................ok
./t/unicode.........................ok
./t/utils...........................ok
./t/yamlish-output..................ok
./t/yamlish-writer..................ok
./t/yamlish.........................ok
./xt/author/pod-coverage............ok
./xt/author/pod.....................ok
./xt/author/stdin...................ok
./xt/perls/harness_perl.............skipped: no perls found in
'/usr/local/stow/'
Test Summary Report
-------------------
./examples/t/10-stuff.t (Wstat: 256 Tests: 6 Failed: 1)
Failed test: 2
TODO passed: 6
Non-zero exit status: 1
./examples/t/ruby.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
Files=46, Tests=10410, 30 wallclock secs ( 2.22 usr 1.29 sys + 14.55 cusr
10.81 csys = 28.87 CPU)
Result: FAIL
Seems to run all the tests again, rather than skipping the passed tests.
This may be related to the quoted test names in .prove.
Regards,
David Pitt | Enterprise Services Technology | National Australia Bank
Limited
Phone +61 3 8641 2014 | Email david.pitt@nab.com.au | Level 26, 500 Bourke
Street, Melbourne
"Andy Armstrong
via RT"
<bug-Test-Harness To
@rt.cpan.org> david.pitt@nab.com.au
cc
09/02/2008 07:31
AM Subject
[rt.cpan.org #33007] prove
incompatibilities with 2.64
Please respond to
bug-Test-Harness@
rt.cpan.org
<URL:
http://rt.cpan.org/Ticket/Display.html?id=33007 >
On Fri Feb 08 14:43:23 2008, ANDYA wrote:
Show quoted text> Hi Dave,
>
> --dry wishlist noted - I'll try to get it done in the next few days.
>
> The bug with prove -r . is already fixed in the SVN sitting on my
> machine. 3.08 will get the
> fix.
>
> Thanks for the report :)
3.08 is on its way to the CPAN. It fixes the -r . problem and adds a --dry
switch.
Thanks again.
National Australia Bank Ltd - ABN 12 004 044 937
This email may contain confidential information. If you are not the intended
recipient, please immediately notify us at postmaster@nab.com.au or by replying to
the sender, and then destroy all copies of this email. Except where this email
indicates otherwise, views expressed in this email are those of the sender and not
of National Australia Bank Ltd. Advice in this email does not take account of your
objectives, financial situation, or needs. It is important for you to consider these
matters and, if the e-mail refers to a product(s), you should read the relevant
Product Disclosure Statement(s)/other disclosure document(s) before making any
decisions. If you do not want email marketing from us in future, forward this email
with "unsubscribe" in the subject line to Unsubscriptions@nab.com.au in order to
stop marketing emails from this sender. National Australia Bank Ltd does not
represent that this email is free of errors, viruses or interference.