Ruby has a nice description at
http://manuals.rubyonrails.com/read/chapter/26

To quote
"Fixtures is a fancy word for ‘sample data’. Fixtures allow you to populate 
your testing database with predefined data before your tests run."

Think about how something like Test::MockDBI's set_retval_arry() or 
set_retval_scalar() can be setup to return specific result sets for specific 
SQL queries - fixtures could be a nice way to modele creating this sample query 
result set.

L


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 13 February 2007 5:36 PM
To: perl-qa@perl.org
Subject: Fixtures

Does anyone here understand "fixtures" as a testing concept, and could they 
please explain it to me in a Perlish way?  

 

At least half of what I've heard described is what I usually achieve with a 
t/data/ directory, and another half is what I'd do by writing a specialized 
Test::Builder-based module.

 

K.

 

 


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.411 / Virus Database: 268.17.33/678 - Release Date: 9/02/2007
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.411 / Virus Database: 268.17.33/678 - Release Date: 9/02/2007
 
**********************************************************************
IMPORTANT
The contents of this e-mail and its attachments are confidential and intended
solely for the use of the individual or entity to whom they are addressed.  If
you received this e-mail in error, please notify the HPA Postmaster, [EMAIL 
PROTECTED],
then delete  the e-mail.
This footnote also confirms that this e-mail message has been swept for the
presence of computer viruses by Ironport. Before opening or using any
attachments, check them for viruses and defects.
Our liability is limited to resupplying any affected attachments.
HPA collects personal information to provide and market our services. For more
information about use, disclosure and access see our Privacy Policy at
www.hpa.com.au
**********************************************************************

Reply via email to