Test::LectroTest is a Perl module with easy, automatic, specification-based tests.
SYNOPSIS
#!/usr/bin/perl -w
use MyModule; # contains code we want to test
use Test::LectroTest;
Property {
##[ x "my_function output is non-negative" ;
Property { ... }, name => "yet another property" ;
# more properties to check here
This module provides a simple (yet full featured) interface to LectroTest, an automated, specification-based testing system for Perl. To use it, declare properties that specify the expected behavior of your software. LectroTest then checks your software to see whether those properties hold.
Declare properties using the Property function, which takes a block of code and promotes it to a Test::LectroTest::Property:
Property {
##[ x "my_function output is non-negative" ;
The first part of the block must contain a generator-binding declaration. For example:
##[ x
Product's homepage
Requirements:
· Perl