Click here to get back home

ANNOUNCE: Test::MockDBI v0.50

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
ANNOUNCE: Test::MockDBI v0.50 Mark Leighton Fisher 01-19-2005
Posted by Mark Leighton Fisher on January 19, 2005, 9:10 am
Please log in for more thread options
Test::MockDBI is a module for testing DBI interfaces by mocking-up the
DBI with Test::MockObject::Extends. It is a testing module, so it
belongs in Test::. It uses Test::MockObject, but does not subclass
Test::MockObject (HAS-A Test::MockObject), so MockDBI is probably the
right choice for the second-level name, as it is a testing module that
mocks the DBI.

Test::MockDBI allows you to modify the DBI's behavior however you
choose by creating rules for the DBI's behavior, where the rules can be
sensitive to what SQL is being processed and what DBI testing mode(s)
you choose. This is an improvement over DBD::Mock or DBI::trace(), as
you can change the behavior as well as never having to hit an actual
database (unless you want to).

The advantage of using Test::MockObject::Extends for testing the DBI
with Test::MockDBI is that Test::MockDBI can be used to test programs
that use DBI without changing the base code of the program -- the
Test::MockDBI code can be added without the rest of the program even
having to know about Test::MockDBI (very handy for us consultants).

Test::MockDBI is listed as alpha, because although the code I have
written so far is probably beta or release quality, I have not
mocked-up the whole DBI interface yet -- just the pieces I needed.

Test-MockDBI-0.50 will soon be available from CPAN at:

http://www.cpan.org/authors/id/M/ML/MLFISHER/Test-MockDBI-0.50.tar.gz

(as I just uploaded it a few minutes ago).
====================================================
Mark Leighton Fisher mark-fisher@fisherscreek.com
http://www.fisherscreek.com/
"Reality is that which, when you stop believing
in it, does not go away." Philip K. Dick



Similar ThreadsPosted
ANNOUNCE: Test::MockDBI v0.61 February 3, 2005, 9:39 am
[ANNOUNCE] Test::MockRandom 0.92 December 23, 2004, 7:49 am
[ANNOUNCE] Test::Float -- compare numbers to specified precision December 26, 2004, 4:20 pm
Test::Pod problems March 3, 2007, 1:04 am
test fails May 10, 2008, 1:17 pm
Asking questions in 'make test' July 27, 2004, 12:55 am
'make test' strangeness ? August 18, 2004, 4:10 am
Start server for test ? May 16, 2005, 12:52 pm
GD make test problem November 23, 2004, 6:32 am
GD make test failure January 16, 2005, 5:11 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap