File: capture-ext.t

package info (click to toggle)
libapp-cmd-perl 0.337-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 512 kB
  • sloc: perl: 1,722; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 333 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!perl

use strict;
use warnings;

use Test::More tests => 2;
use App::Cmd::Tester::CaptureExternal;

use lib 't/lib';

use Test::MyCmd;

my $app = Test::MyCmd->new;

isa_ok($app, 'Test::MyCmd');

my $return = test_app('Test::MyCmd', [ qw(hello) ]);

like( $return->output, qr/Hello World/, "Captured external subcommand output" );