You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Jonathan Druart df4764d3b5 Issue #7 - Forbid type='text/css' for style tags 6 years ago
QohA Issue #7 - Forbid type='text/css' for style tags 6 years ago
qa-tools/git add a pre-commit git hook, useful for Koha 12 years ago
t Issue #3: Add tests 6 years ago
LICENSE add LICENSE file 11 years ago
README Bug 15753: String update in the README for qa-test-tools 8 years ago
TODO Bug 16008: Deal with removed files 8 years ago
koha-qa.pl Issue #3: Skip tests if module does not exist in Koha src yet 6 years ago
perl-deps added perl-deps file 11 years ago
perlcriticrc Add ProhibitUnusedVariables to perlcritic rules 9 years ago

README

NAME
koha-qa.pl

SYNOPSIS
koha-qa.pl -c NUMBER_OF_COMMITS [-v VERBOSITY_VALUE] [-d] [--nocolor]
[-h]

DESCRIPTION
koha-qa.pl runs various QA tests on the last $x commits, in a Koha git
repo.

1/ configure your shell vars correctly
$ export KOHA_CONF=/path/to/your/koha/koha-conf.xml
$ export PERL5LIB="${PERL5LIB}":\
/path/to/your/koha.git:\
/path/to/your/koha.git/C4/SIP:\
/path/to/your/qa-tools.git
$ alias qa="/path/to/your/qa-tools.git/koha-qa.pl"

2/ install perl dependancy packages
$ cd /path/to/your/qa-test-tools.git
$ sudo cat ./perl-deps | cpanm

and codespell:
$ sudo apt-get install codespell

3/ run test suite (optional)
$ cd /path/to/your/qa-test-tools.git
$ prove

4/ change to your Koha git repo
$ cd /path/to/your/koha.git

5/ apply a new patch to test (optional)
$ git bz apply 4460

6/ run a qa-test on your Koha git repo, for the last commit
$ qa -c 1 [-v 2]