1use Test::More; 2use strict; 3use warnings; 4# HARNESS-NO-STREAM 5 6# See https://github.com/Test-More/test-more/issues/789 7 8BEGIN { 9 plan skip_all => 'AUTHOR_TESTING not enabled' 10 unless $ENV{AUTHOR_TESTING}; 11 12 plan skip_all => "This test requires Test::Class" 13 unless eval { require Test::Class; 1 }; 14 15 plan skip_all => "This test requires Test::Script" 16 unless eval { require Test::Script; 1 }; 17} 18 19package Test; 20 21use base 'Test::Class'; 22 23use Test::More; 24use Test::Script; 25 26sub a_compilation_test : Test(startup => 1) { 27 script_compiles(__FILE__); 28} 29 30sub test : Test(1) { 31 ok(1); 32} 33 34package main; 35 36use Test::Class; 37 38Test::Class->runtests; 39