[Koha-bugs] [Bug 8446] Shibboleth authentication patch

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 10 09:16:08 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8446

--- Comment #100 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
:(

It seems that mocking the database with DBD::Mock when using DBIx::Class is
simply incompatible (DBIx::Class just complains about an unrecognised DBI
driver, then proceeds to drop back to some default SQL and fails badly)

I've been looking into alternatives, like Test::DBIx::Class (which is a module
to create an in memory sql database to test against, but this route requires
lots of work manually creating dummy data to test against). I then tried
DBIx::Class::Sims (which is a module to automatically fill tables with randomly
generated dummy data, but this approach also fails because our database schema
has a large number of cyclic relationships and the Sims module doesn't cope
with this well)

Interesting enough, the problem I'm facing (Not wanting to have to populate the
whole structure of a Borrowers Row and satisfy all constraints manually) is
basically solved by the TestBuilder module we recently decided not to adopt!

I'll keep battling with it, but I have a feeling the Test size will have to
jump substantially as I add all the releated data in a transaction.  It
shouldn't be this Hard!

Martin

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list