Testing databases with DBIx::Class

Dagfinn Ilmari Mannsåker ilmari at ilmari.org
Tue Jan 10 10:34:50 GMT 2012

Ian Knopke <ian.knopke at gmail.com> writes:

> Hi,
> I need to test some DBIx::Class code where the database may not be
> available. I can set up something to generate a small, temporary
> SQlite db, but I was wondering what approaches others are currently
> using for this. DBD::Mock seems ok but not especially well suited for
> use with DBIx. What does the rest of the community currently do?

At work we use Test::DBIx::Class, which can use an SQLite database or a
scratch MySQL or PostgreSQL instance (no root or CREATE DATABASE
privilege needed).

"A disappointingly low fraction of the human race is,
 at any given time, on fire." - Stig Sandbeck Mathisen

More information about the london.pm mailing list