-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f212d77
commit 62ef27a
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
use strict; | ||
use warnings; | ||
|
||
use Test::More 0.88; | ||
use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; | ||
use Test::DZil; | ||
use Test::Fatal; | ||
use Path::Tiny; | ||
|
||
{ | ||
my $tzil = Builder->from_config( | ||
{ dist_root => 'does-not-exist' }, | ||
{ | ||
add_files => { | ||
'source/dist.ini' => simple_ini( | ||
'@Basic', | ||
'MetaJSON', | ||
), | ||
}, | ||
}, | ||
); | ||
|
||
$tzil->chrome->logger->set_debug(1); | ||
is( | ||
exception { $tzil->build }, | ||
undef, | ||
'build proceeds normally', | ||
); | ||
|
||
my $build_dir = path($tzil->tempdir)->child('build'); | ||
ok(-e $build_dir->child('META.json'), 'META.json was created successfully'); | ||
|
||
diag 'got log messages: ', explain $tzil->log_messages | ||
if not Test::Builder->new->is_passing; | ||
} | ||
|
||
done_testing; |