Skip to content

Commit

Permalink
Add a test to at least make sure it can make a simple build.
Browse files Browse the repository at this point in the history
  • Loading branch information
carandraug committed Feb 2, 2017
1 parent 38fc7c5 commit 0b57773
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -9,6 +9,7 @@ Summary of important user-visible changes for dist-zilla-pluginbundle-Bioperl
links to the bugtracker.
* Removed use of Authority plugin as it is now obsolete in perl5.
* Removed [RunExtraTests]. Use `dzil test -all'. See also `dzil smoke'.
* Added a test unit to the pluginbundle.

0.23 2014-09-05 09:46:02-05:00 America/Chicago
* Add [ExtraTests] in cases where we want to only run tests for release
Expand Down
47 changes: 47 additions & 0 deletions t/main.t
@@ -0,0 +1,47 @@
#!/usr/bin/env perl
use utf8;

# AUTHOR: Carnë Draug <carandraug+dev@gmail.com
# OWNER: 2017 Carnë Draug
# LICENSE: Perl_5

use strict;
use warnings;

use Test::More;

use Test::DZil;
use Test::Fatal;

my $module_text = <<'END';
package Foo::Bar;
# AUTHOR: this guy
# OWNER: that other guy
# LICENSE: Perl_5
1;
END


my $dzil_ini = simple_ini (
{name => 'Foo-Bar', version => '0.010'},
'@BioPerl',
);

my $tzil = Test::DZil->Builder->from_config (
{dist_root => 'does-not-exist'},
{
add_files => {
"source/dist.ini" => $dzil_ini,
"source/lib/Foo/Bar.pm" => $module_text,
"source/Changes" => "",
},
}
);
$tzil->chrome->logger->set_debug (1);

## At the very least, check that we can make a build with it.
is (exception { $tzil->build },undef, 'build completes');

done_testing;

0 comments on commit 0b57773

Please sign in to comment.