15 Sep
2010
15 Sep
'10
6:55 a.m.
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