1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
use strict;
use warnings;
use Test::More;
use Test::DZil qw( simple_ini );
use Dist::Zilla::Util::Test::KENTNL qw( dztest );
use Dist::Zilla::App::Command::authordeps;
# FILENAME: 02-basic-dztest.t
# ABSTRACT: Make sure dztest works
my $test = dztest;
$test->add_file( 'dist.ini', simple_ini( ['GatherDir'] ) );
{
my $result = $test->run_command( ['authordeps'] );
ok( ref $result, 'listdeps executed' );
is( $result->error, undef, 'no errors' );
is( $result->exit_code, 0, 'exit = 0' );
note( $result->stdout );
}
{
my $result = $test->run_command( ['build'] );
ok( ref $result, 'build executed' );
is( $result->error, undef, 'no errors' );
is( $result->exit_code, 0, 'exit = 0' );
note( $result->stdout );
}
{
my $result = $test->run_command( ['build'] );
ok( ref $result, 'build executed' );
is( $result->error, undef, 'no errors' );
is( $result->exit_code, 0, 'exit = 0' );
note( $result->stdout );
}
done_testing;
|