File: runtests_extra.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 (23 lines) | stat: -rwxr-xr-x 438 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /usr/bin/perl -T

use strict;
use warnings;
$ENV{TEST_VERBOSE}=0;

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

sub extra_test : Test(1)  {
	ok(1, "expected test");
	ok(1, "extra test");
};

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

test_out("ok 1 - expected test");
test_out("ok 2 - extra test");
test_err("# expected 1 test(s) in Foo::extra_test, 2 completed");
Foo->runtests;
test_test("extra test detected");