manorhce has asked for the wisdom of the Perl Monks concerning the following question:
I am writing test cases for my application my problem is the modules which is used to connect to database, for that I am writing test cases and it connects to database and loads the database
My Point is that can Perl provides mock database object so that every time it will not connect database, It will create database mock object
UPDATE
I am writing like below
ok($db = Denali::DB->new(), "Connect"); isa_ok($db, "Denali::DB"); my $dddd = Denali::DB->connect();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Writing Test Case for Database Connectivity
by kcott (Archbishop) on Feb 06, 2013 at 07:27 UTC | |
Re: Writing Test Case for Database Connectivity
by moritz (Cardinal) on Feb 06, 2013 at 10:57 UTC |
Back to
Seekers of Perl Wisdom