Quieting Test::More
stevieb asked: is there a way to have Test::More (or Test::Most, etc) only display failing tests?
haukex replied with with following code:
use File::Spec;
Test::More->builder->output(File::Spec->devnull);
Posted on March 31, 2018. Filed under: Uncategorized | Tags: author:haukex, author:stevieb, cpan:file-spec, cpan:test-builder, cpan:test-more, perl, perlmonks, testing |
stevieb asked: is there a way to have Test::More (or Test::Most, etc) only display failing tests?
haukex replied with with following code:
use File::Spec;
Test::More->builder->output(File::Spec->devnull);
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | ||||
Liked it here?
Why not try sites on the blogroll...
Get a free blog at WordPress.com Theme: Fadtastic by Andrew Faulkner.