App-RL
view release on metacpan or search on metacpan
t/15-convert.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
use App::Cmd::Tester;
use App::RL;
my $result = test_app( 'App::RL' => [qw(help convert)] );
like( $result->stdout, qr{convert}, 'descriptions' );
$result = test_app( 'App::RL' => [qw(convert)] );
like( $result->error, qr{need .+input file}, 'need infile' );
$result = test_app( 'App::RL' => [qw(convert t/not_exists)] );
like( $result->error, qr{doesn't exist}, 'infile not exists' );
$result = test_app( 'App::RL' => [qw(convert t/repeat.yml -o stdout)] );
is( ( scalar grep {/\S/} split( /\n/, $result->stdout ) ), 28, 'line count' );
like( $result->stdout, qr{II:327069-327703}, 'first chromosome' );
done_testing();
( run in 1.774 second using v1.01-cache-2.11-cpan-99c4e6809bf )