[Koha-bugs] [Bug 2607] New: reorganize test modules so that "can_ok" on all of the methods is not called repeatedly
bugzilla-daemon at pippin.metavore.com
bugzilla-daemon at pippin.metavore.com
Mon Sep 15 20:43:53 CEST 2008
http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2607
Summary: reorganize test modules so that "can_ok" on all of the
methods is not called repeatedly
Product: Koha
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: Test Suite
AssignedTo: Andrew.moore at liblime.com
ReportedBy: Andrew.moore at liblime.com
QAContact: koha-bugs at lists.koha.org
Currently, the 'methods' method of each of the test modules is run several
times per test run. That's not the way it's supposed to be.
Here's what I'll do to fix that:
* change the 'methods' method of each to just return a list of method names,
and to not actually call 'can_ok' on them.
* remove the "Test(1)" attribute from that method so that it's not run
* in KohaTest.pm, make a startupk method that calls "can_ok(
$self->testing_class, @self->methods );".
* Is this desired: in KohaTest.pm, make a 'methods' method that returns an
empty list, just in case one of the subclasses doesn't define their own.
This is the way I imagined it at first. I don't know how I started down this
wrong road.
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the Koha-bugs
mailing list