3 # Copyright 2015 BibLibre
5 # This file is part of Koha.
7 # Koha is free software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the Free Software
9 # Foundation; either version 3 of the License, or (at your option) any later
12 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along
17 # with Koha; if not, see <http://www.gnu.org/licenses>.
25 You have to be in yout Koha/src directory
26 ./misc/devel/coverage.pl
30 This script make a cover on all files to see which modules are not tested yet
38 #Die if you are not in your Koha src directory
39 my $KOHA_PATH = C4::Context->config("intranetdir");
40 die "ERROR : You are not in Koha src/ directory"
41 unless $KOHA_PATH eq getcwd;
44 system("cover -delete");
47 system("PERL5OPT=-MDevel::Cover /usr/bin/prove -r t/");
49 #Create the HTML output
51 say("file://$KOHA_PATH/cover_db/coverage.html")
52 unless !-e "$KOHA_PATH/cover_db/coverage.html";