Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 34 lines (23 sloc) 0.637 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
#!/usr/bin/perl

use warnings;
use strict;

=head2



=cut

use C4::Context;
use Data::Dumper;
use Test::More;

use Test::Class::Load qw ( . ); # run from the t directory

KohaTest::clear_test_database();
KohaTest::create_test_database();

KohaTest::start_zebrasrv();
KohaTest::start_zebraqueue_daemon();

if ($ENV{'TEST_CLASS'}) {
    # assume only one test class is specified;
    # should extend to allow multiples, but that will
    # mean changing how test classes are loaded.
    eval "KohaTest::$ENV{'TEST_CLASS'}->runtests";
} else {
    Test::Class->runtests;
}

KohaTest::stop_zebraqueue_daemon();
KohaTest::stop_zebrasrv();
Something went wrong with that request. Please try again.