Given this test in test.t:
#/usr/bin/env perl use Test::More; use strict; use warnings; use Proc::InvokeEditor; my $edited_text = Proc::InvokeEditor->edit('edit me'); is $edited_text, "edit you\n", 'can edit text'; done_testing();
The Proc::InvokeEditor spawns a new editor instance. When this test is run with prove test.t, you get:
test.t .. Vim: Warning: Output is not to a terminalThe test runs fine with perl test.t. What's the best fix for this?
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
In reply to Running an editor in a test with "prove" command by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |