summaryrefslogtreecommitdiff
path: root/xt/cli/tree.t
blob: 15c56bff7c4a54e16ef7b7c359a00b6f4f858c4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use strict;
use Test::More;
use xt::CLI;

{
    my $app = cli();

    $app->dir->child("cpanfile")->spew(<<EOF);
requires 'HTML::Parser';
EOF

    $app->run("install");
    $app->run("tree");

    is $app->exit_code, 0;
    like $app->stdout, qr/^HTML::Parser \(HTML-Parser-/m;
    like $app->stdout, qr/^ HTML::Tagset \(HTML-Tagset-/m;
}

done_testing;