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.387.165 Times

Test::DataDriven 0.03

Company: Mattia Barbon
Date Added: September 11, 2013  |  Visits: 481

Test::DataDriven

Report Broken Link
Printer Friendly Version


Product Homepage
Download (33 downloads)



Test::Base is great Perl module for writing data driven tests, but sometimes you need to test things that cannot be easily expressed using the filter-and-compare-output approach.<br /><br />Test::DataDriven builds upon Test::Base adding the ability to declare actions to be run for each section of each test block. In particular, the processing of each block is divided in three phases: "begin", "run" and "end". The "begin" phase can be used to assess or establish the preconditions for the test. The "run" phase is used to perform some actions. The "end" phase can be used to check the side effects of the "run" phase.<br /><br />SYNOPSIS<br /><br />In the test module:<br /><br /> # t/lib/MyTest.pm<br /> package MyTest;<br /><br /> use Test::DataDriven::Plugin -base;<br /> __PACKAGE__->register;<br /><br /> my $time;<br /> my $result;<br /><br /> sub check_before : Begin(add1) {<br /> my( $block, $section_name, @data ) = @_;<br /> $time = time();<br /> }<br /><br /> sub do_that : Run(add1) {<br /> my( $block, $section_name, @data ) = @_;<br /> $result = add_1( $data[0] );<br /> }<br /><br /> sub check_after : End(result) {<br /> my( $block, $section_name, @data ) = @_;<br /> is( $result, $data[0] );<br /> ok( time() - $time < 1 ); # check side effects<br /> }<br /><br />In the test file:<br /><br /> use MyTest;<br /> use Test::More tests => 4;<br /><br /> Test::DataDriven->run;<br /><br /> __END__<br /><br /> === Test 1<br /> --- add1 chomp<br /> 3<br /> --- result<br /> 4<br /><br /> === Test 1<br /> --- add1 chomp<br /> 7<br /> --- result<br /> 8

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: 3d3d3d Actions Beginadd Block Check Chomp Data Datadriven Driven Effects Module Mytest Phase Quotbeginquot Quotendquot Quotrunquot Result Section Test Test Datadriven Testbase Tests
Users rating: 0/10

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


TEST::DATADRIVEN RELATED
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  -  File::Data 1.12
File::Data is a Perl module as a interface to file data. Wraps all the accessing of a file into a convenient set of calls for reading and writing data, including a simple regex interface. Note that the file needs to exist prior to using this...
13.31 KB  
Modules  -  Block Filter 5.x-1.x-dev 1.0
This filter allows an editor to embed any available block into content by using the blocks module and delta in the following syntaxt: [block:{module}:{delta}]InstallationUnpack in your modules folder (usually /sites/all/modules/) and enable under...
 
Database Tools  -  TextSQL 1.0
TextSQL can parse some types of SQL queries and translate the queries into actions to store and retrieve data from text files.CREATE TABLE, INSERT and SELECT SQL queries are supported.
10 KB  
Modules  -  Block API 6.x-1.0-beta2
Block API is an API to allow module developers to add new types of blocks with set templates, in a similar fashion to defining content types for the node system.Block API by itself is useless and should only be installed if another module requires...
10 KB  
Backup Utilities  -  Free BKF Viewer Software 1.0
If you want to check the data inside BKF files then try free BKF viewer software which is a suitable utility to perform this process. And the good thing is that it is completely free tool. It is free of bugs, malware, adware, and spyware. It...
932 KB  
Database Tools  -  Simple Data Grid 1.0
Simple Data Grid can be used to display MySQL database query result data in an HTML table grid.There are classes to define details of the headers and body of table grid. There is also a class for executing MySQL database queries and return the...
81.92 KB  
Development Tools  -  Data Translation DT8837 Instrument Module Driver 1.0
Using the MATLABdlT« Instrument Control Toolboxd-OC?D?, you can access the functionality of Data Translationd-deOaos DT8837 instrument module . The Instrument Control Toolbox communicates with the DT8837 through a MATLAB driver to the...
81.92 KB  
Science  -  AMS Laser Ablation ICPMS Software 1.1.0
User friendly LA-ICPMS data reduction software that supports solid phase and fluid inclusion work
9.88 MB  
Libraries  -  Bio::NEXUS::DataBlock 0.67
Bio::NEXUS::DataBlock is a Perl module that represents the deprecated DATA Block in NEXUS file. SYNOPSIS $block_object = new Bio::NEXUS::DataBlock($type, $block, $verbose, $taxlabels_ref); The DataBlock class represents the deprecated Data...
153.6 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 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  -  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