README
1DESCRIPTION
2
3This is Test::Group, a companion module to Test::Builder. It allows
4to lump tests and fixture into groups that make sense together. For
5example:
6
7 use Test::More tests => 1;
8 use Test::Group;
9
10 test "hammering the server" => sub {
11 ok(I_can_connect);
12 for(1..1000) {
13 ok(I_can_make_a_request);
14 }
15 };
16
17produces
18
19 1..1
20 ok 1 - hammering the server
21
22Diagnostics of failed subtests are shown, but successful subtests are
23muted. This makes the test output very legible even to the naked eye.
24
25Test::Group has no dependencies besides what is provided in stock Perl
265.8.8. It also works under Perl 5.6.1 and 5.8.x (with dependencies).
27
28Test::Group has been in use in my shop under a different name for
29years, and has provided significant productivity improvements over
30plain Test::More in test-driven development.
31
32Note that you may want to investigate another CPAN module, Test::Class
33by Adrian Howard, which is older and offers a similar feature. But
34being a full-fledged test framework it is also a little bit more
35cumbersome to use if all you want to do is to group tests.
36
37INSTALLATION
38
39To install this module, run the following commands:
40
41 perl Makefile.PL
42 make
43 make test
44 make install
45
46Or alternatively if you have Module::Build installed,
47
48 perl Build.PL
49 ./Build
50 ./Build test
51 ./Build install
52
53
54COPYRIGHT AND LICENCE
55
56Copyright (C) 2006 IDEALX and Dominique Quatravaux <domq@cpan.org>
57Copyright (C) 2009 Nick Cleaton <ncleaton@cpan.org>
58
59This program is free software; you can redistribute it and/or modify it
60under the same terms as Perl itself.
61