Test::LectroTestTest::LectroTest is a Perl module with easy, automatic, specification-based tests. | |
Download |
Test::LectroTest Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Tom Moertel
- Publisher web site:
- http://search.cpan.org/~tmoertel/Test-LectroTest-0.3500/lib/Test/LectroTest.pm
Test::LectroTest Tags
Test::LectroTest Description
Test::LectroTest is a Perl module with easy, automatic, specification-based tests. 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 hereThis 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 Requirements: · Perl
Test::LectroTest Related Software