nysus has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running an editor in a test with "prove" command
by haukex (Archbishop) on May 31, 2020 at 16:12 UTC | |
by nysus (Parson) on May 31, 2020 at 16:23 UTC | |
by ikegami (Patriarch) on May 31, 2020 at 18:57 UTC | |
by Anonymous Monk on May 31, 2020 at 21:57 UTC | |
by soonix (Chancellor) on Jun 01, 2020 at 05:54 UTC | |
|
Re: Running an editor in a test with "prove" command
by Anonymous Monk on Jun 01, 2020 at 01:03 UTC |