This is an automated email from the git hooks/post-receive script.

kanashiro-guest pushed a commit to branch master
in repository carton.

commit 20ed12c30c3143d9a651a9259653f03132924e66
Author: Tatsuhiko Miyagawa <miyag...@bulknews.net>
Date:   Sat Mar 30 14:46:24 2013 -0700

    Install 'test' prereqs by default
---
 lib/Carton.pm      |  2 +-
 xt/cli/test_deps.t | 26 ++++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/lib/Carton.pm b/lib/Carton.pm
index 705305c..fd51ef4 100644
--- a/lib/Carton.pm
+++ b/lib/Carton.pm
@@ -52,7 +52,7 @@ sub list_dependencies {
 
     my $reqs = CPAN::Meta::Requirements->new;
     $reqs->add_requirements($prereq->requirements_for($_, 'requires'))
-        for qw( configure build runtime ); # add test
+        for qw( configure build runtime test );
 
     my $hash = $reqs->as_string_hash;
     # TODO refactor to not rely on string representation
diff --git a/xt/cli/test_deps.t b/xt/cli/test_deps.t
new file mode 100644
index 0000000..8f34ac6
--- /dev/null
+++ b/xt/cli/test_deps.t
@@ -0,0 +1,26 @@
+use strict;
+use Test::More;
+use xt::CLI;
+use Cwd;
+
+my $cwd = Cwd::cwd();
+
+{
+    my $app = cli();
+
+    $app->dir->touch("cpanfile", <<EOF);
+on test => sub {
+    requires 'Test::NoWarnings';
+};
+EOF
+
+    $app->run("install");
+
+    $app->run("list");
+    like $app->output, qr/Test-NoWarnings/;
+}
+
+done_testing;
+
+
+

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/carton.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to