From: Marius Gavrilescu Date: Sat, 1 Feb 2014 20:20:30 +0000 (+0200) Subject: Do not test unless $ENV{RUN_TESTS} is true X-Git-Tag: 5999.000_001~2 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=1ce4e27cb4d98315838ef24e9ed72a09f0ac6df5;p=gruntmaster-data.git Do not test unless $ENV{RUN_TESTS} is true --- diff --git a/t/Gruntmaster-Data.t b/t/Gruntmaster-Data.t index 51a3cef..b2786fd 100644 --- a/t/Gruntmaster-Data.t +++ b/t/Gruntmaster-Data.t @@ -1,18 +1,10 @@ -# Before 'make install' is performed this script should be runnable with -# 'make test'. After 'make install' it should work as 'perl Gruntmaster-Data.t' +#!/usr/bin/perl -w +use v5.14; -######################### +use Test::More; +BEGIN { + plan skip_all => '$ENV{RUN_TESTS} is false, skipping tests' unless $ENV{RUN_TESTS}; + plan tests => 1; +} -# change 'tests => 1' to 'tests => last_test_to_print'; - -use strict; -use warnings; - -use Test::More tests => 1; BEGIN { use_ok('Gruntmaster::Data') }; - -######################### - -# Insert your test code below, the Test::More module is use()ed here so read -# its man page ( perldoc Test::More ) for help writing this test script. -