Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jun 9, 2011
  1. @ctfliblime

    Add and include it universally

    ctfliblime authored
    At this point all we're doing is turning on warnings, strict,
    and 5.10 features by default in all files. This also defines
    a $Koha::VERSION variable which is going to be the basis for
    the code revision number, as opposed to $C4::Context::VERSION,
    which is the data config version number.
Commits on Mar 12, 2011
  1. @ctfliblime
Commits on May 11, 2008
  1. test suite refactoring

    Galen Charlton authored Joshua Ferraro committed
    Moved routines to clear and create database and manage to so that they're
    available to test classes - needed for installation
    and upgrade tests in particular.
    Signed-off-by: Joshua Ferraro <>
Commits on May 1, 2008
  1. test framework - two improvements

    Galen Charlton authored Joshua Ferraro committed
    [1] When running the database-dependent tests (cd t, make test),
        all tables in the test database are dropped prior to running
        the installer and test cases.  This means that the test
        database will start with a clean slate.
    [2] It is now possible to specify a single test class to run,
        to avoid having to run all of them:
        cd t
        make test TEST_CLASS=Search
        To run all DB-dependent tests, just do the usual
        cd t
        make test
    Signed-off-by: Joshua Ferraro <>
Commits on Apr 22, 2008
  1. @amoore

    testing framework: replacing PERL5LIB in order to more conidently fin…

    amoore authored Joshua Ferraro committed
    …d libraries
    This patch makes the test suite work even when $PERL5LIB isn't set to the install directory.
    It replaces $PERL5LIB with '..' in order to help ensure that we're loading the C4 libraries
    out of the installation directory.
    Signed-off-by: Joshua Ferraro <>
Commits on Apr 21, 2008
  1. test suite - various changes

    Galen Charlton authored Joshua Ferraro committed
    * All configuration and run-time files created during
      a test suite run now live under t/run
    * made sure scripts copied to t/run/bin are executable
    * added t/run and t/test-config.txt to .gitignore
    Signed-off-by: Andrew Moore <>
    Signed-off-by: Joshua Ferraro <>
  2. @amoore

    improvements to automated tests, including a testing database

    amoore authored Joshua Ferraro committed
    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/ 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
    '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 <>
    Signed-off-by: Joshua Ferraro <>
Something went wrong with that request. Please try again.