blib/lib/Dist/Zilla/Plugin/Run/Test.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 95.6% 22 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Dist/Zilla/Plugin/Run/Release.pm ↑ Summary blib/lib/Dist/Zilla/Plugin/Run/AfterRelease.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Dist::Zilla::Plugin::Run::Test;
5 # ABSTRACT: execute a command of the distribution after build
6  
7 1 our $VERSION = '0.050';
8  
9 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 with qw(
11 Dist::Zilla::Role::TestRunner
12 Dist::Zilla::Plugin::Run::Role::Runner
13 );
14  
15 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 1 ▶sub test {
Subroutine test: called CC=1 SCAR=0.0
Pod undocumented
18 1 my ($self, $dir) = @_;
19  
20 1 $self->_call_script({
21 dir => $dir
22 });
23 }
24  
25 #pod =head1 SYNOPSIS
26 #pod
27 #pod [Run::Test]
28 #pod run = script/tester.pl --name %n --version %v some_file.ext
29 #pod
30 #pod =head1 DESCRIPTION
31 #pod
32 #pod This plugin executes the specified command during the test phase.
33 #pod
34 #pod =head1 CAVEAT
35 #pod
36 #pod Unlike the other [Run::*] plugins, when running the scripts, the
37 #pod current working directory will be the directory with
38 #pod newly built distribution. This is the way Dist::Zilla works.
39 #pod
40 #pod =head1 POSITIONAL PARAMETERS
41 #pod
42 #pod See L<Dist::Zilla::Plugin::Run/CONVERSIONS>
43 #pod for the list of common formatting variables available to all plugins.
44 #pod
45 #pod There are no positional parameters for this plugin.
46 #pod
47 #pod =cut
48  
49 1 1;
50  
51 __END__
« blib/lib/Dist/Zilla/Plugin/Run/Release.pm ↑ Summary blib/lib/Dist/Zilla/Plugin/Run/AfterRelease.pm »