Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pvande/test-mini
Lightweight xUnit Testing for Perl
https://github.com/pvande/test-mini
perl test-framework
Last synced: 2 months ago
JSON representation
Lightweight xUnit Testing for Perl
- Host: GitHub
- URL: https://github.com/pvande/test-mini
- Owner: pvande
- Created: 2010-03-31T08:17:56.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2016-06-07T01:02:27.000Z (over 8 years ago)
- Last Synced: 2024-09-30T12:01:18.002Z (3 months ago)
- Topics: perl, test-framework
- Language: Perl
- Homepage:
- Size: 528 KB
- Stars: 6
- Watchers: 3
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: README.pod
- Changelog: Changes
Awesome Lists containing this project
README
=for comment Documentation generated by YARD v0.6.1 and yard-pod-plugin v0.1.
=head1 NAME
Test::Mini - Lightweight xUnit Testing for Perl
=head1 DESCRIPTION
Test::Mini is a light, spry testing framework built to bring the
familiarity of an xUnit testing framework to Perl as a first-class
citizen. Based initially on Ryan Davis' minitest, it provides a not
only a simple way to write and run tests, but the necessary
infrastructure for more expressive test fromeworks to be written.Since example code speaks louder than words:
package t::Test
use base 'Test::Mini::TestCase';
use strict;
use warnings;# This will run before each test
sub setup { ... }# This will run after each test
sub teardown { ... }sub test_something {
my $self = shift;
$self->assert(1); # Assertions come from Test::Mini::Assertions
}# Assertions can also be imported...
use Test::Mini::Assertions;sub helper { return 1 }
sub test_something_else {
assert(helper());
}Like any traditional xUnit framework, any method whose name begins with
'test' will be automatically run. If you've declared 'setup' or
'teardown' methods, they will be run before or after each test.See Also:
=over
=item *
L<<<< S<<<<< http://blog.zenspider.com/minitest >>>>> >>>>
=item *
L<<<< S<<<<< Test::Mini::Runner >>>>>|Test::Mini::Runner >>>>
=back
=head1 METHODS
=head2 Class Methods
=over
=item B<<<< runner_class >>>>
runner_class # => Class
The test runner class to use.
Returns:
=over
=item *
(I<<<< Class >>>>) -- The test runner class to use.
=back
=back
=head1 AUTHOR
Pieter van de Bruggen