in reply to debug output from TODO with Test::More
If I understand what you're trying to achieve, warn() seems to do the trick:
use warnings; use strict; use Test::More; TODO: { local $TODO = ''; is (1, 1, 'inside') and warn "*** unexpected pass at line " . __LINE__ ."\n"; } done_testing();
Output:
ok 1 - inside *** unexpected pass at line 9 1..1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: debug output from TODO with Test::More
by 1nickt (Canon) on Jan 13, 2017 at 15:14 UTC | |
by stevieb (Canon) on Jan 13, 2017 at 15:25 UTC |