Main > Programming > Libraries >

Test::Class 0.24

Test::Class 0.24

Sponsored Links

Test::Class 0.24 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.046 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 864
Date added: 2007-06-13
Publisher: Adrian Howard

Test::Class 0.24 description

Test::Class is a Perl module that allows you to easily create test classes in an xUnit/JUnit style.

SYNOPSIS

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

# setup methods are run before every test method.
sub make_fixture : Test(setup) {
my $array = [1, 2];
shift->{test_array} = $array;
};

# a test method that runs 1 test
sub test_push : Test {
my $array = shift->{test_array};
push @$array, 3;
is_deeply($array, [1, 2, 3], push worked);
};

# a test method that runs 4 tests
sub test_pop : Test(4) {
my $array = shift->{test_array};
is(pop @$array, 2, pop = 2);
is(pop @$array, 1, pop = 1);
is_deeply($array, [], array empty);
is(pop @$array, undef, pop = undef);
};

# teardown methods are run after every test method.
sub teardown : Test(teardown) {
my $array = shift->{test_array};
diag("array = (@$array) after test(s)");
};
later in a nearby .t file
#! /usr/bin/perl
use Example::Test;

# run all the test methods in Example::Test
Test::Class->runtests;

Outputs:

1..5
ok 1 - pop = 2
ok 2 - pop = 1
ok 3 - array empty
ok 4 - pop = undef
# array = () after test(s)
ok 5 - push worked
# array = (1 2 3) after test(s)

Test::Class 0.24 Screenshot

Advertisements

Test::Class 0.24 Keywords

Bookmark Test::Class 0.24

Hyperlink code:
Link for forum:

Test::Class 0.24 Copyright

WareSeeker periodically updates pricing and software information of Test::Class 0.24 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Test::Class 0.24 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Exception::Class is a Perl module that allows you to declare real exception classes in Perl. Free Download
Test::WWW::Simple is a Perl module to test Web applications using TAP. Free Download
Test::Differences Perl module contains test strings and data structures and show differences if not ok. Free Download
Test::Data is a Perl module to test functions for particular variable types. Free Download
Test::Unit::Procedural Perl module contains a procedural style unit testing interface. Free Download
Test::TempDatabase is a Perl module for temporary database creation and destruction. Free Download
Class::Std::Utils is a Perl module for utility subroutines for building "inside-out" objects. Free Download
PLJava is Perl module that will embed Perl into Java. Free Download