[Dancer-users] Dancer::Plugin:Database with multiple connections - request for testers

Alexis Sukrieh sukria at sukria.net
Wed Sep 15 08:55:35 CEST 2010


Le 15/09/2010 00:18, David Precious a écrit :
[...]

Great news! :)

> I also plan to write some good tests for it, but I'm not sure the best way to
> go about testing it to be honest - any thoughts would be appreciated.
>
> I could use DBD::Mock or Test::MockDBI to mock up the database interactions so
> I'm just testing the way the plugin works, but I'd ideally need to test it as
> it would be used from a Dancer app, which is the bit I'm not sure about.

I suggest taking a look at Test::Database, it's exactly what you need ;)

http://search.cpan.org/~book/Test-Database-1.11/lib/Test/Database.pm

Regards,

-- 
Alexis Sukrieh



More information about the Dancer-users mailing list