Koha-clms/t
Andrew Moore 80568463ea improvements to automated tests, including a testing database
I'm adding a bunch of additions to the test suite. There is now a test
database that is created, and a test instance of the zebra server and
daemon that are run before the tests in t/database-dependent.pl are
run. This means that you can test things that insert (or destroy)
things in the database.

To use these tests, after you 'make' your koha installation, you can
change to the 't' directory and 'make test' there.

There is now an additional question asked during installation. It asks
whether you would like to run the data-dependent tests. If so, It asks
you for some login information to a test database. I recommend that
you do not not use your production database here. It will delete all
of the data in it.

Things that need improvement:
* I suspect that there are large parts that are not very platform
  independent, so they will need to be improved.
* There are some parts of the installer that will probably be
  refactored to let this work a little bit better, including being run
  directly from a main-level 'make' target at some point.
* Lots more tests to add. Be bold! (see the t/lib directory)
* other tests in t/*.t can possibly benefit from being included in here.

There are two required perl modules for this part of the test suite. I
use:
'Test::Class' => 0.028,
'Test::Class::Load' => 0.02,
They are not listed as requirements in the top-level Makefile.PL
because they're not actually required to install or use Koha, but if
you want to run the test suite, you can install them from CPAN.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-04-21 11:26:27 -05:00
..
db_dependent use bind variables in C4::Acquisition::GetPendingOrders 2008-03-19 15:46:23 -05:00
Accounts.t test suite cleanup 2008-01-08 14:08:02 -06:00
Amazon.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
AuthoritiesMarc.t test suite cleanup 2008-01-08 14:08:02 -06:00
Barcodes_PrinterConfig.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Biblio.t test suite cleanup 2008-01-08 14:08:02 -06:00
Bookfund.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Bookseller.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Boolean.t test suite cleanup 2008-01-08 14:08:02 -06:00
Branch.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Breeding.t test suite cleanup 2008-01-08 14:08:02 -06:00
Calendar.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Charset.t IMPORTANT - refactor MARC character set handling 2008-02-03 07:23:56 -06:00
Circulation.t test suite cleanup 2008-01-08 14:08:02 -06:00
Date.t test suite cleanup 2008-01-08 14:08:02 -06:00
Dates.t Dates - remove extra newlines from carps, add partial "00" date tests to Dates.t 2008-01-14 16:45:31 -06:00
Debug.t C4::Debug - Centralized debug switches module, test and proof conversion (in Dates.pm) 2008-01-23 21:27:20 -06:00
Input.t Input.t permissions fix 2007-11-16 13:24:37 -06:00
Items.t test suite cleanup 2008-01-08 14:08:02 -06:00
Koha.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Labels.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Languages.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Letters.t test suite cleanup 2008-01-08 14:08:02 -06:00
Log.t test suite cleanup 2008-01-08 14:08:02 -06:00
Maintainance.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Makefile improvements to automated tests, including a testing database 2008-04-21 11:26:27 -05:00
Members.t test suite cleanup 2008-01-08 14:08:02 -06:00
NewsChannels.t test suite cleanup 2008-01-08 14:08:02 -06:00
Output.t C4::Output tests -- removed inccorect tests 2008-01-08 14:07:23 -06:00
Overdues.t test suite cleanup 2008-01-08 14:08:02 -06:00
Print.t test suite cleanup 2008-01-08 14:08:02 -06:00
Record.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Reserves.t test suite cleanup 2008-01-08 14:08:02 -06:00
Review.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Search.t test suite cleanup 2008-01-08 14:08:02 -06:00
Serials.t test suite cleanup 2008-01-08 14:08:02 -06:00
Stats.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
Suggestions.t test suite cleanup 2008-01-08 14:08:02 -06:00
Z3950.t test suite cleanup 2008-01-08 14:08:02 -06:00
database_dependent.pl improvements to automated tests, including a testing database 2008-04-21 11:26:27 -05:00
dummy.t Total Test Overhaul! Most of these were stubs, and still are. 2007-10-18 16:26:44 -05:00
override_context_prefs.pm test suite cleanup 2008-01-08 14:08:02 -06:00
rewrite-config-test.PL improvements to automated tests, including a testing database 2008-04-21 11:26:27 -05:00