[Koha-bugs] [Bug 5477] New: Test cases requiring database access fail
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Dec 8 06:57:32 CET 2010
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5477
Summary: Test cases requiring database access fail
Change sponsored?: ---
Product: Koha
Version: rel_3_2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: Test Suite
AssignedTo: gmcharlt at gmail.com
ReportedBy: robin at catalyst.net.nz
QAContact: koha-bugs at lists.koha-community.org
Estimated Hours: 0.0
In the 3.2.1 release there are a number of test cases that fail because they
'use' modules that immediately attempt to access the database. As most machines
won't have MySQL set up to contain the user/password and database required,
these fail.
My suggestions for fixing this are:
* Move these tests into a 'db_dependent' directory so that they aren't run by
default. Perhaps add a 'make test_all' rule that includes them.
* Have the packages move the iffy ones out of the way (although they will still
fail for anyone running 'make test' without the database set up.)
* Introduce an environment variable that is set during testing that tells
C4::Context (or whatever it is making the DB connection) that failures are OK.
This may reduce test coverage however, which we don't want.
The tests I've noticed with this problem are:
00-load.t
External_BakerTaylor.t
Reports_Guided.t
Service.t
Tags.t
UploadedFile.t
VirtualShelves_Page.t
--
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the Koha-bugs
mailing list