stevieb has asked for the wisdom of the Perl Monks concerning the following question:
Test::More is verbose in its output as it should be. That said, when I have say a loop of tests that produces ~100 results, is there a way to flag it to say "don't say anything, except for my debug print statements"?
Being able to do so would allow me to troubleshoot specific areas of my test files without having to continuously manually edit a test file and move around nonsense like:
done_testing(); exit;
...lines.
Using something like perl t/100-test.t > /dev/null works well to display only the failed test results to STDERR, but that buries print statements.
What do you do to either stop your tests from running upon a failed one, or allow your print statements to be printed to STDOUT and bypass everything else?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Quieting Test::More
by kcott (Archbishop) on Jul 04, 2017 at 08:03 UTC | |
Re: Quieting Test::More
by 1nickt (Canon) on Jul 04, 2017 at 01:13 UTC | |
Re: Quieting Test::More
by haukex (Archbishop) on Jul 04, 2017 at 09:35 UTC | |
Re: Quieting Test::More
by Anonymous Monk on Jul 03, 2017 at 23:45 UTC | |
by stevieb (Canon) on Jul 03, 2017 at 23:54 UTC | |
Re: Quieting Test::More (purpose, diag)
by Anonymous Monk on Jul 04, 2017 at 00:02 UTC | |
by stevieb (Canon) on Jul 04, 2017 at 00:19 UTC | |
by stevieb (Canon) on Jul 04, 2017 at 00:06 UTC |