Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prove t/*.t does not respect $ENV{HARNESS_VERBOSE} #85

Open
shlomif opened this issue Jan 15, 2019 · 2 comments
Open

prove t/*.t does not respect $ENV{HARNESS_VERBOSE} #85

shlomif opened this issue Jan 15, 2019 · 2 comments

Comments

@shlomif
Copy link
Contributor

shlomif commented Jan 15, 2019

shlomif[black-hole]:~/Test-Harness$ export HARNESS_VERBOSE=1
shlomif[black-hole]:~/Test-Harness$ prove t/*.t
t/000-load.t ........... 13/97 # Testing Test::Harness 3.42, Perl 5.028001, /usr/bin/perl5.28.1
t/000-load.t ........... ok     
t/aggregator.t ......... ok     
t/bailout.t ............ ok     
t/base.t ............... ok     
t/callbacks.t .......... ok     
t/console.t ............ ok   
t/env_opts.t ........... ok     
t/errors.t ............. ok     
t/file.t ............... 1/56 ^C
shlomif[black-hole]:~/Test-Harness$ runprove t/*.t 2>&1 | head -10
t/000-load ........... 1..97
ok 1 - use TAP::Parser;
ok 2 - ... and TAP::Parser should have the correct version
ok 3 - use App::Prove;
ok 4 - ... and App::Prove should have the correct version
ok 5 - use App::Prove::State;
ok 6 - ... and App::Prove::State should have the correct version
ok 7 - use App::Prove::State::Result;
ok 8 - ... and App::Prove::State::Result should have the correct version
ok 9 - use App::Prove::State::Result::Test;
shlomif[black-hole]:~/Test-Harness$ 

I just wasted many minutes trying to understand why it doesn;t work on travis.

@jkeenan
Copy link

jkeenan commented Jan 15, 2019

$ man prove | ack -i verbose
        -v,  --verbose         Print all test lines.
             --count           Show the X/Y test count when not verbose
             --normalize       Normalize TAP output in verbose output

The documentation for prove says nothing about $ENV{HARNESS_VERBOSE}. So I wouldn't expect that envvar to have any impact on prove notwithstanding the fact that it is discussed elsewhere in the Test-Harness CPAN distribution.

@Leont
Copy link
Member

Leont commented Jan 16, 2019

Yeah, this sort of divergence between prove and Test::Harness is rather unfortunate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants