Dist-Zilla-Util-Test-KENTNL

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN


 [Dependencies::Stats]
 - Dependencies changed since 1.002000, see misc/*.deps* for details
 - runtime: +2

 [Tests]
 - Test coverage improved.

1.002000 2014-08-22T17:40:28Z
 [00 Minor]
 - Prefer Test::Differences everywhere it is possible.

 [Dependencies::Stats]
 - Dependencies changed since 1.001002, see misc/*.deps* for details
 - develop: +1
 - runtime: (recommends: +1)

1.001002 2014-08-21T05:38:29Z
 [Bugfix]
 - make sure build is in fact, always invoked when builder is required.

META.json  view on Meta::CPAN

            "Dist::Zilla::Plugin::Test::Perl::Critic" : "0",
            "Dist::Zilla::Plugin::Test::ReportPrereqs" : "0",
            "Dist::Zilla::Plugin::TestRelease" : "0",
            "Dist::Zilla::Plugin::Twitter" : "0",
            "Dist::Zilla::Plugin::UploadToCPAN" : "0",
            "English" : "0",
            "Pod::Coverage::TrustPod" : "0",
            "Software::License::Perl_5" : "0",
            "Test::CPAN::Changes" : "0.19",
            "Test::CPAN::Meta" : "0",
            "Test::Differences" : "0",
            "Test::EOL" : "0",
            "Test::Kwalitee" : "1.21",
            "Test::MinimumVersion" : "0",
            "Test::More" : "0.88",
            "Test::Pod" : "1.41",
            "Test::Pod::Coverage" : "1.08",
            "Test::TempDir::Tiny" : "0"
         },
         "suggests" : {
            "Dist::Zilla::App::Command::bakeini" : "0.002005",
            "Dist::Zilla::PluginBundle::Author::KENTNL" : "2.025020"
         }
      },
      "runtime" : {
         "recommends" : {
            "Moo" : "1.000008",
            "Path::Tiny" : "0.058",
            "Test::Differences" : "0",
            "Test::More" : "0.99",
            "Test::TempDir::Tiny" : "0"
         },
         "requires" : {
            "Carp" : "0",
            "Data::DPath" : "0",
            "Dist::Zilla::App::Tester" : "0",
            "Dist::Zilla::Tester" : "0",
            "Dist::Zilla::Util" : "0",
            "Module::Runtime" : "0",

META.yml  view on Meta::CPAN

provides:
  Dist::Zilla::Util::Test::KENTNL:
    file: lib/Dist/Zilla/Util/Test/KENTNL.pm
    version: '1.005014'
  Dist::Zilla::Util::Test::KENTNL::dztest:
    file: lib/Dist/Zilla/Util/Test/KENTNL/dztest.pm
    version: '1.005014'
recommends:
  Moo: '1.000008'
  Path::Tiny: '0.058'
  Test::Differences: '0'
  Test::More: '0.99'
  Test::TempDir::Tiny: '0'
requires:
  Carp: '0'
  Data::DPath: '0'
  Dist::Zilla::App::Tester: '0'
  Dist::Zilla::Tester: '0'
  Dist::Zilla::Util: '0'
  Module::Runtime: '0'
  Moo: '0'

dist.ini  view on Meta::CPAN

Dist::Zilla::Plugin::Test::Perl::Critic = 0
Dist::Zilla::Plugin::Test::ReportPrereqs = 0
Dist::Zilla::Plugin::TestRelease = 0
Dist::Zilla::Plugin::Twitter = 0
Dist::Zilla::Plugin::UploadToCPAN = 0

[Prereqs]
Path::Tiny = 0.050

[Prereqs / RuntimeRecommends]
Test::Differences = 0
Test::TempDir::Tiny = 0

[Prereqs / DevelopRequires]
Test::Differences = 0
Test::TempDir::Tiny = 0

[DynamicPrereqs]
:version = 0.016
-raw = # Avoid issue with sanity bugs and Moose penalties
-raw = my $module = "Dist::Zilla::App::Command::chainsmoke";
-raw = requires($module, '1.15') if has_module($module);

dist.ini.meta  view on Meta::CPAN

;version_rel_year  = 2010
;version_rel_month = 11
;version_rel_day   = 3
;version_rel_hour  = 17
;version_rel_time_zone = Pacific/Auckland

[Prereqs]
Path::Tiny = 0.050 ; No fatalized iterators

[Prereqs / RuntimeRecommends ]
Test::Differences = 0
Test::TempDir::Tiny = 0

[Prereqs / DevelopRequires ]
Test::Differences = 0
Test::TempDir::Tiny = 0

[DynamicPrereqs]
:version = 0.016
-raw = # Avoid issue with sanity bugs and Moose penalties
-raw = my $module = "Dist::Zilla::App::Command::chainsmoke";
-raw = requires($module, '1.15') if has_module($module);

lib/Dist/Zilla/Util/Test/KENTNL/dztest.pm  view on Meta::CPAN

use Carp qw( croak );
use Moo qw( has );
use Test::Fatal qw( exception );
use Test::More 0.96 qw( );    # subtest
use Path::Tiny qw(path);
use Dist::Zilla::Util;
use Dist::Zilla::App::Tester qw( test_dzil );
use Module::Runtime qw();

## no critic (ValuesAndExpressions::ProhibitConstantPragma,ErrorHandling::RequireCheckingReturnValueOfEval,Subroutines::ProhibitSubroutinePrototypes)
use recommended 'Test::Differences', 'Test::TempDir::Tiny';
use Data::DPath qw( dpath );
## use critic








lib/Dist/Zilla/Util/Test/KENTNL/dztest.pm  view on Meta::CPAN





sub _subtest_prereqs_deeply {
  my ( $self, $prereqs ) = @_;
  my $meta = $self->distmeta;
  $self->tb->ok( defined $meta, 'distmeta defined' );
  $self->tb->note( $self->tb->explain( $meta->{prereqs} ) );

  if ( recommended->has('Test::Differences') ) {
    Test::Differences::eq_or_diff( $meta->{prereqs}, $prereqs, 'Prereqs match expected set' );
  }
  else {
    ## no critic (Subroutines::ProhibitCallsToUnexportedSubs)
    Test::More::is_deeply( $meta->{prereqs}, $prereqs, 'Prereqs match expected set' );
  }
  return;
}

sub prereqs_deeply {
  my ( $self, $prereqs ) = @_;

lib/Dist/Zilla/Util/Test/KENTNL/dztest.pm  view on Meta::CPAN

  my ( $self, $expression, $expected ) = @_;
  if ( not 'ARRAY' eq ref $expected ) {
    $self->tb->diag(<<'EOF');
WARNING: Author appears to have forgotten to wrap $expected with [], and this may cause a bug.
EOF
    $expected = [$expected];
  }
  my (@results) = dpath($expression)->match( $self->builder->distmeta );
  $self->tb->ok( @results > 0, "distmeta matched expression $expression" );
  $self->tb->note( $self->tb->explain( \@results ) );
  if ( recommended->has('Test::Differences') ) {
    Test::Differences::eq_or_diff( \@results, $expected, 'distmeta matched expectations' );
  }
  else {
    ## no critic (Subroutines::ProhibitCallsToUnexportedSubs)
    Test::More::is_deeply( \@results, $expected, 'distmeta matched expectations' );
  }
  return;
}

sub meta_path_deeply {
  my ( $self, $expression, $expected, $reason ) = @_;

misc/Changes.deps.all  view on Meta::CPAN

 [Changed / runtime requires]
 - Path::Tiny 0 → 0.050

1.003000 2014-08-29T07:46:22Z
 [Added / runtime requires]
 - Dist::Zilla::Util
 - Module::Runtime

1.002000 2014-08-22T17:40:28Z
 [Added / develop requires]
 - Test::Differences

 [Added / runtime recommends]
 - Test::Differences

1.001002 2014-08-21T05:38:29Z
 [Changed / develop suggests]
 - Dist::Zilla::PluginBundle::Author::KENTNL 2.019000 → 2.020000

1.001001 2014-08-18T23:05:17Z
 [Added / runtime requires]
 - constant

1.001000 2014-08-18T21:14:28Z

misc/Changes.deps.dev  view on Meta::CPAN

1.003002 2014-09-07T09:07:01Z
 [Changed / develop suggests]
 - Dist::Zilla::PluginBundle::Author::KENTNL 2.020000 → 2.020001

1.003001 2014-08-29T09:27:43Z

1.003000 2014-08-29T07:46:22Z

1.002000 2014-08-22T17:40:28Z
 [Added / develop requires]
 - Test::Differences

1.001002 2014-08-21T05:38:29Z
 [Changed / develop suggests]
 - Dist::Zilla::PluginBundle::Author::KENTNL 2.019000 → 2.020000

1.001001 2014-08-18T23:05:17Z

1.001000 2014-08-18T21:14:28Z
 [Added / develop requires]
 - Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes 0.001001

misc/Changes.deps.opt  view on Meta::CPAN


 [Changed / test recommends]
 - Test::More 1.001003 → 1.001006

1.003001 2014-08-29T09:27:43Z

1.003000 2014-08-29T07:46:22Z

1.002000 2014-08-22T17:40:28Z
 [Added / runtime recommends]
 - Test::Differences

1.001002 2014-08-21T05:38:29Z

1.001001 2014-08-18T23:05:17Z

1.001000 2014-08-18T21:14:28Z
 [Added / runtime recommends]
 - Test::More 1.001003

1.000003 2014-08-03T12:37:40Z

misc/built_with.json  view on Meta::CPAN

      "Module::Metadata" : "1.000033",
      "Module::Runtime" : "0.014",
      "Moo" : "2.003000",
      "Path::Tiny" : "0.104",
      "Pod::Coverage::TrustPod" : "0.100003",
      "Software::License::Perl_5" : "0.103012",
      "Sub::Exporter" : "0.987",
      "Test::CPAN::Changes" : "0.400002",
      "Test::CPAN::Meta" : "0.25",
      "Test::DZil" : "6.008",
      "Test::Differences" : "0.64",
      "Test::EOL" : "1.6",
      "Test::Fatal" : "0.014",
      "Test::Kwalitee" : "1.25",
      "Test::MinimumVersion" : "0.101082",
      "Test::More" : "1.302073",
      "Test::Pod" : "1.51",
      "Test::Pod::Coverage" : "1.10",
      "Test::TempDir::Tiny" : "0.016",
      "Try::Tiny" : "0.28",
      "recommended" : "0.003",

t/00-report-prereqs.dd  view on Meta::CPAN

                                      'Dist::Zilla::Plugin::Test::Perl::Critic' => '0',
                                      'Dist::Zilla::Plugin::Test::ReportPrereqs' => '0',
                                      'Dist::Zilla::Plugin::TestRelease' => '0',
                                      'Dist::Zilla::Plugin::Twitter' => '0',
                                      'Dist::Zilla::Plugin::UploadToCPAN' => '0',
                                      'English' => '0',
                                      'Pod::Coverage::TrustPod' => '0',
                                      'Software::License::Perl_5' => '0',
                                      'Test::CPAN::Changes' => '0.19',
                                      'Test::CPAN::Meta' => '0',
                                      'Test::Differences' => '0',
                                      'Test::EOL' => '0',
                                      'Test::Kwalitee' => '1.21',
                                      'Test::MinimumVersion' => '0',
                                      'Test::More' => '0.88',
                                      'Test::Pod' => '1.41',
                                      'Test::Pod::Coverage' => '1.08',
                                      'Test::TempDir::Tiny' => '0'
                                    },
                      'suggests' => {
                                      'Dist::Zilla::App::Command::bakeini' => '0.002005',
                                      'Dist::Zilla::PluginBundle::Author::KENTNL' => '2.025020'
                                    }
                    },
       'runtime' => {
                      'recommends' => {
                                        'Moo' => '1.000008',
                                        'Path::Tiny' => '0.058',
                                        'Test::Differences' => '0',
                                        'Test::More' => '0.99',
                                        'Test::TempDir::Tiny' => '0'
                                      },
                      'requires' => {
                                      'Carp' => '0',
                                      'Data::DPath' => '0',
                                      'Dist::Zilla::App::Tester' => '0',
                                      'Dist::Zilla::Tester' => '0',
                                      'Dist::Zilla::Util' => '0',
                                      'Module::Runtime' => '0',



( run in 0.725 second using v1.01-cache-2.11-cpan-6aa56a78535 )