NAME
Test::Mini - Clean Unit Testing
SYNOPSIS
Real Documentation is coming. In the meantime, enjoy the montage!
Traditional Style
package TraditionalTest;
use Test::Mini 'sugarfree';
use Test::Mini::Assertions;
sub setup { 'This runs before each test...' }
sub teardown { 'This runs after each test...' }
sub test_assert { assert 1, 'I should pass' }
sub test_refute { refute 0, 'I should fail' }
sub test_skip { skip "I've got better things to do" }
1;
Sweetened Style
use Test::Mini;
testcase SugaryTest {
setup { 'This runs before each test...' }
teardown { 'This runs after each test...' }
test passes() { assert 1, 'I should pass' }
test refute() { refute 0, 'I should fail' }
test skip() { skip "I've got better things to do" }
}
AUTHOR
Pieter van de Bruggen, <pvande@cpan.org<gt>
COPYRIGHT AND LICENSE
Copyright (C) 2010 by Pieter van de Bruggen
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.9 or, at your option, any later version of Perl 5 you may have available.