File: test_verbose.t

package info (click to toggle)
libtest-class-perl 0.35-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 476 kB
  • ctags: 102
  • sloc: perl: 1,668; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 468 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /usr/bin/perl -T

use strict;
use warnings;

package Local::Test;
use base qw(Test::Class);
use Test::More;

sub test1 : Test { ok(1) };
sub test2 : Test { ok(1) };

package main;
use Test::Builder::Tester tests => 1;

$ENV{TEST_VERBOSE}=1;
test_diag("");
test_diag("Local::Test->test1");
test_out("ok 1 - test1");
test_diag("");
test_diag("Local::Test->test2");
test_out("ok 2 - test2");
Local::Test->runtests;
test_test("TEST_VERBOSE outputs method diagnostic");