Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.066.711 Times

Test::Usage 0.07

  Date Added: January 03, 2010  |  Visits: 653

Test::Usage

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)

Test::Usage is a different approach to testing: selective, quieter, colorful. SYNOPSIS Lets say we are building module Foo.pm. To exercise it, we write a usage examples module, Foo_T.pm, which may eventually look something like this: package Foo_T; use Test::Usage; use strict; use warnings; use Foo; example(e1, sub { ... ok(...); ... die "Uh oh"; ... }); example(a1, sub { ... ok(...) or diag(...); ... }); example(a2, sub { ... ok(...); ... }); example(a3, sub { my $f = Foo->new(); my $got_foo = $f->foo(); my $exp_foo = FOO; ok( $got_foo eq $exp_foo, "Expecting foo() to return $exp_foo.", "But got $got_foo." ); }); Here are a few ways to test its examples: # Run example a3 only. perl -MFoo_T -e test(a => "a3") # Run all examples whose label matches glob a*: a1, a2, a3. perl -MFoo_T -e test(a => "a*") # Run all examples found in the test module. perl -MFoo_T -e test # Run example a3, reporting successes also, but without color. perl -MFoo_T -e test(a => "a3", v => 2, c => 0) # Run and summarize all examples in all "*_T.pm" files found under # current directory. perl -MTest::Usage -e files.

Requirements: No special requirements
Platforms: Linux
Keyword: Example Foo Libraries Mfoo Perl Programming Test Testusage
Users rating: 0/10

License: Freeware Size: 16.38 KB
TEST::USAGE RELATED
Libraries  -  Test::STD::PerlSTD 0.23
Test::STD::PerlSTD is a general Perl Software Test Description (STD). TITLE PAGE Gerneral Software Test Description (STD) for Perl Program Modules Revision: - Date: 2004/05/15 Prepared for: General Public Prepared by:...
122.88 KB  
Network & Internet  -  mod_perl 2.0.3
mod_perl project brings together the full power of the Perl programming language and the Apache HTTP server. You can use Perl to manage Apache, respond to requests for web pages and much more. mod_perl gives you a persistent Perl interpreter...
3.5 MB  
Libraries  -  Test::Data 1.20
Test::Data is a Perl module to test functions for particular variable types. SYNOPSIS use Test::Data qw(Scalar Array Hash Function); Test::Data provides utility functions to check properties and values of data and variables. Functions...
8.19 KB  
Libraries  -  Video::Info::FOO 0.993
Video::Info::FOO is a Perl module for video information. Video::Info::FOO - what is it useful for? an example list: -video codec -audio codec -frame height -frame width -frame count and more! SYNOPSIS use Video::Info::FOO; my...
634.88 KB  
Utilities  -  Perl OS 4
Perl OS is a program written in the Perl programming language combined with the Perl module Tk. Perl OS was created to make an easy interface to run Perl/Tk programs. It was also created to be an easy working environment complete with a text...
143.36 KB  
Programming  -  Acme::BOPE 0.01
Created at the base of the hill of Babylon, New York, in full evening of funk, this module allows you to make inroads Perl programming using just jargon and language taken from the famous movie "Elite Squad" director Jose Padilha
10.24 KB  
Programming  -  Test::MTA::Exim4 0.03
Test::MTA::Exim4 allows the testing of an exim installation and configuration using the perl TAP (Test Anything Protocol) methodology. This allows the writing of some simple test scripts which can check for features of exim and check...
40.96 KB  
Web Authoring  -  WebAPP 1.0 SE
WebAPP is a popular, open source Content Management System (cms) written in the Perl programming language. The name WebAPP is an abbreviation of Web Automated Perl Portal. Available under the GNU General Public License, WebAPP is free software....
2 KB  
Programming  -  devkitPro 1.5.7
This project is for homebrew console development tools based on the gnu compiler collection with additional tools and libraries to aid programming each supported console. The windows variants are built with MinGW.
444.26 KB  
Business  -  ECONZ Timecard 1.1.0
A working example and libraries for the Open SOAP interface to ECONZ Wireless's Timecard application, a mobile timesheet software solution that enables employees to log time attendance and task information, remotely via their cell phone
2.77 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB