File: 04-run-command.t

package info (click to toggle)
libdist-zilla-util-test-kentnl-perl 1.005014-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 340 kB
  • sloc: perl: 595; makefile: 2
file content (37 lines) | stat: -rw-r--r-- 978 bytes parent folder | download | duplicates (4)
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;