Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Add Devel::Declare sugar to Test::Class

tag: v0.0100

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 t
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Makefile.PL
Octocat-spinner-32 README.textile



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 {

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';


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

Something went wrong with that request. Please try again.