3 # Copyright 2015 BibLibre
4 # This file is part of Koha.
6 # Koha is free software; you can redistribute it and/or modify it under the
7 # terms of the GNU General Public License as published by the Free Software
8 # Foundation; either version 2 of the License, or (at your option) any later
11 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
12 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License along
16 # with Koha; if not, write to the Free Software Foundation, Inc.,
17 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 ./misc/devel/coverage.pl
29 This script make a cover on all files to see which modules are not tested yet
36 my $KOHA_PATH = C4::Context->config("intranetdir");
45 say "Devel::Cover needs to be installed";
50 system("cover -delete");
53 system("PERL5OPT=-MDevel::Cover /usr/bin/prove -r t/");
55 #Create the HTML output
58 say("file://$KOHA_PATH/cover_db/coverage.html");