This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 2e99f52cb5138b1f694cc38df0f057b45ea4557a
tree ab511ca82c6d535c060d65af684389c26096dc0a
parent 487aeb1539348b50268881f4baeb59c5a65f5b80
tree ab511ca82c6d535c060d65af684389c26096dc0a
parent 487aeb1539348b50268881f4baeb59c5a65f5b80
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Mar 11 04:29:30 -0700 2009 | |
| |
LICENSE | Fri Mar 13 23:32:10 -0700 2009 | |
| |
Makefile.PL | ||
| |
README.textile | ||
| |
lib/ | ||
| |
t/ |
README.textile
Test::Class::Sugar
Synopsis
Test::Class::Sugar is a declarative wrapper around Adrian Howard’s
Test::Class xUnit style Perl
testing library.
The idea is that, instead of writing:
package Test::Something;
use base qw/Test::Class/;
use Test::Most;
sub subject {
'Something'
}
sub test_something : Test(3) {
my $test = shift;
is $test->current_method, 'test_something';
is $test->subject, 'Something';
isa_ok $test, 'Test::Something';
}
You will be able to write:
use Test::Class::Sugar;
testclass exercises Something {
test something >> 3 {
is $test->current_method, 'test_something';
is $test->subject, 'Something';
isa_ok $test, 'Test::Something';
}
}
Prerequisites
There will be a proper list of library prerequisites in Makefile.PL by the
time this gets properly released, but at the time of writing there are a
couple of requirements that can’t be fulfilled from CPAN.
You’ll need a bleeding edge
Devel::Declare from Github








