diff options
Diffstat (limited to 'xt/cli/deps_phase.t')
-rw-r--r-- | xt/cli/deps_phase.t | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/xt/cli/deps_phase.t b/xt/cli/deps_phase.t new file mode 100644 index 0000000..862dc76 --- /dev/null +++ b/xt/cli/deps_phase.t @@ -0,0 +1,29 @@ +use strict; +use Test::More; +use xt::CLI; + +{ + my $app = cli(); + + $app->write_cpanfile(<<EOF); +on test => sub { + requires 'Test::NoWarnings'; + recommends 'Test::Pretty'; +}; +on develop => sub { + requires 'Path::Tiny'; +}; +EOF + + $app->run("install"); + + $app->run("list"); + like $app->stdout, qr/Test-NoWarnings/; + like $app->stdout, qr/Path-Tiny/; + unlike $app->stdout, qr/Test-Pretty/; +} + +done_testing; + + + |