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

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

Serving Software Downloads in 956 Categories, Downloaded 50.200.389 Times

Test::Unit::Procedural 0.24

  Date Added: May 23, 2010  |  Visits: 810

Test::Unit::Procedural

Report Broken Link
Printer Friendly Version


Product Homepage
Download (95 downloads)



Test::Unit::Procedural Perl module contains a procedural style unit testing interface. SYNOPSIS use Test::Unit::Procedural; # your code to be tested goes here sub foo { return 23 }; sub bar { return 42 }; # define tests sub test_foo { assert(foo() == 23, "Your message here"); } sub test_bar { assert(bar() == 42, "I will be printed if this fails"); } # set_up and tear_down are used to # prepare and release resources need for testing sub set_up { print "hello worldn"; } sub tear_down { print "leaving world againn"; } # run your test create_suite(); run_suite(); Test::Unit::Procedural is the procedural style interface to a sophisticated unit testing framework for Perl that is derived from the JUnit testing framework for Java by Kent Beck and Erich Gamma. While this framework is originally intended to support unit testing in an object-oriented development paradigm (with support for inheritance of tests etc.), Test::Unit::Procedural is intended to provide a simpler interface to the framework that is more suitable for use in a scripting style environment. Therefore, Test::Unit::Procedural does not provide much support for an object-oriented approach to unit testing - if you want that, please have a look at Test::Unit::TestCase. You test a given unit (a script, a module, whatever) by using Test::Unit::Procedural, which exports the following routines into your namespace: assert() used to assert that a boolean condition is true create_suite() used to create a test suite consisting of all methods with a name prefix of test run_suite() runs the test suite (text output) add_suite() used to add test suites to each other For convenience, create_suite() will automatically build a test suite for a given package. This will build a test case for each subroutine in the package given that has a name starting with test and pack them all together into one TestSuite object for easy testing. If you dont give a package name to create_suite(), the current package is taken as default. Test output is one status line (a "." for every successful test run, or an "F" for any failed test run, to indicate progress), one result line ("OK" or "!!!FAILURES!!!"), and possibly many lines reporting detailed error messages for any failed tests. Please remember, Test::Unit::Procedural is intended to be a simple and convenient interface. If you need more functionality, take the object-oriented approach outlined in Test::Unit::TestCase..

Requirements: No special requirements
Platforms: Linux
Keyword: Libraries Perl Module Procedural Perl Programming Style Sub Suite Test Testing Testunitprocedural Unit Unit Testing Used To
Users rating: 0/10

License: Freeware Size: 75.78 KB
USER REVIEWS
More Reviews or Write Review


TEST::UNIT::PROCEDURAL RELATED
Graphic Animators  -  3DPageFlip Flash Catalog Templates for Dreamy World 1.0
The Dreamy World style provides different designs of templates which can be used to present more attractive eBrochures. There are five templates you can download in this theme package, which show you five different color systems: White, Blue, Red,...
2.19 MB  
Communication  -  Generating Waveforms on Agilent MXG, ESG, PSG Signal Sources using MATLAB 1.0
MATLAB is a software environment and programming language with over 1,000,000 users and is used to generate arbitrary and standard waveforms, configure and control instruments, build automated test applications, and analyze and visualize data from...
10 KB  
Communication  -  Two Port S-Parameter Measurement 1.0
MATLAB is a software environment and programming language with over 1,000,000 users and is used to generate arbitrary and standard waveforms, configure and control instruments, build automated test applications, and analyze and visualize data from...
20.48 KB  
Libraries  -  Cache::Repository 0.05
Cache::Repository is a Perl module used to cache generic file repository. SYNOPSIS my $rep = Cache::Repository->new( style => Filesys, # options for the F::R driver ); $rep->add_files(tag => groupname, files => @filenames, basedir =>...
12.29 KB  
Libraries  -  Games::Dice 0.02
Games::Dice is a Perl module that can be used to simulate dice rolls. SYNOPSIS use Games::Dice roll; $strength = roll 3d6+1; use Games::Dice roll_array; @rolls = roll_array 4d8; Games::Dice simulates die rolls. It uses a...
4.1 KB  
Libraries  -  Locale::Maketext::Extract 0.62
Locale::Maketext::Extract is a Perl module used to extract translatable strings from source. SYNOPSIS my $Ext = Locale::Maketext::Extract->new; $Ext->read_po(messages.po); $Ext->extract_file($_) for ; # Set...
83.97 KB  
Libraries  -  Net::Lyskom 1.1
Net::Lyskom is a Perl module used to talk to LysKOM servers. SYNOPSIS use Net::Lyskom; $a = Net::Lyskom->new(); $conf = 6; $a->login(pers_no => 437, password => "God", invisible => 1) or die "Failed to log in: $a->err_stringn"; $b =...
23.55 KB  
Libraries  -  Basset::Object 1.04
Basset::Object is a Perl module used to create objects. This is my ultimate object creation toolset to date. It has roots in Mail::Bulkmail, Text::Flowchart, and the unreleased abstract object constructors that Ive tooled around with in the...
143.36 KB  
Libraries  -  NetServer::Portal 1.08
NetServer::Portal is a Perl module used to interactively manipulate daemon processes. SYNOPSIS require NetServer::Portal; NetServer::Portal->default_start(); # creates server warn "NetServer::Portal listening on port ".(7000+($$ %...
13.31 KB  
Libraries  -  Inline::Java::PerlInterpreter 0.52
Inline::Java::PerlInterpreter is a Perl module used to call Perl directly from Java using Inline::Java. SYNOPSIS import org.perl.inline.java.* ; class HelpMePerl { static private InlineJavaPerlInterpreter pi = null ; public HelpMePerl()...
94.21 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.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...
3.88 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