Skip to content

Commit

Permalink
Add a basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Mar 12, 2017
1 parent 6dc7425 commit f9d71ed
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
- Remove use of Class::Load
- Remove useless Moose::Autobox messing up dzil version load time.
- Add MetaConfig data
- Basic test added.

[Dependencies::Stats]
- Dependencies changed since 0.2.4, see misc/*.deps* for details
- build: -1
- configure: +2 -1 (recommends: +1)
- develop: +24 ↑3 -14 (recommends: +1, suggests: +2 -1)
- runtime: +2 -2 (recommends: +1)
- test: +3 ↓1 (recommends: +3)
- test: +4 ↓1 (recommends: +3)

0.2.4 2013-11-22T09:51:44Z
[00 Minor]
Expand Down
1 change: 1 addition & 0 deletions misc/Changes.deps
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This file contains changes in REQUIRED dependencies for standard CPAN phases (co
[Added / test requires]
- ExtUtils::MakeMaker
- File::Spec
- Test::DZil
- perl 5.006

[Changed / test requires]
Expand Down
1 change: 1 addition & 0 deletions misc/Changes.deps.all
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ This file contains ALL changes in dependencies in both REQUIRED / OPTIONAL depen
[Added / test requires]
- ExtUtils::MakeMaker
- File::Spec
- Test::DZil
- perl 5.006

[Changed / develop requires]
Expand Down
25 changes: 25 additions & 0 deletions t/01-basic.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
use strict;
use warnings;

use Test::More tests => 1;
use Test::DZil qw( simple_ini Builder );
my $tzil = Builder->from_config(
{ dist_root => 'invalid' },
{
add_files => {
'source/dist.ini' => simple_ini(
['MetaConfig'],
[
'Prereqs::DarkPAN' => {
DDG => 'http://darkpan.duckduckgo.com/',
}
],
),
}
}
);
$tzil->chrome->logger->set_debug(1);
$tzil->build;
pass("build ok");
note explain $tzil->distmeta;
note explain $tzil->log_messages;

0 comments on commit f9d71ed

Please sign in to comment.