Bug 5385: POD Cleanups (part 2)
[koha.git] / t / database_dependent.pl
blob1b52be79336322d027c820b250fe4d40840eec84
1 #!/usr/bin/perl
3 use warnings;
4 use strict;
6 =head2
10 =cut
12 use C4::Context;
13 use Data::Dumper;
14 use Test::More;
16 use Test::Class::Load qw ( . ); # run from the t directory
18 KohaTest::clear_test_database();
19 KohaTest::create_test_database();
21 KohaTest::start_zebrasrv();
22 KohaTest::start_zebraqueue_daemon();
24 if ($ENV{'TEST_CLASS'}) {
25 # assume only one test class is specified;
26 # should extend to allow multiples, but that will
27 # mean changing how test classes are loaded.
28 eval "KohaTest::$ENV{'TEST_CLASS'}->runtests";
29 } else {
30 Test::Class->runtests;
33 KohaTest::stop_zebraqueue_daemon();
34 KohaTest::stop_zebrasrv();