1
0
Fork 2
mirror of https://gitlab.com/koha-community/qa-test-tools.git synced 2026-06-12 11:53:54 +00:00
koha-qa-test
  • Perl 98.9%
  • Raku 1.1%
Find a file
Jonathan Druart bec2a93653
Issue #114: Adjust check_new_line_at_the_end_of_file
Run for Perl, JS, TT, YML and CSS (exclude third-party libs)
2026-05-07 11:14:44 +02:00
qa-tools/git add a pre-commit git hook, useful for Koha 2012-08-09 11:47:59 +02:00
QohA Issue #114: Adjust check_new_line_at_the_end_of_file 2026-05-07 11:14:44 +02:00
t Issue #114: Adjust check_new_line_at_the_end_of_file 2026-05-07 11:14:44 +02:00
.gitlab-ci.yml Issue #108: gitlab-ci - install node_modules and clone Koha 2026-01-23 13:28:26 +01:00
cpanfile Issue #111: Pin Perl::Tidy version to 20250105 2026-03-19 13:20:24 +01:00
koha-qa.pl Revert "[#104] Add KOHA_SOURCE_DIR support and refactor tidy.pl handling" 2025-11-13 14:20:35 +01:00
LICENSE add LICENSE file 2013-04-20 02:56:13 +12:00
perlcriticrc Issue #41 - Prevent indirect object notation 2020-10-15 14:31:33 +02:00
README Revert "[#104] Add KOHA_SOURCE_DIR support and refactor tidy.pl handling" 2025-11-13 14:20:35 +01:00
TODO Bug 16008: Deal with removed files 2016-06-10 15:29:49 +01:00

NAME
       koha-qa.pl

SYNOPSIS
       koha-qa.pl [-c NUMBER_OF_COMMITS] [-v VERBOSITY_VALUE] [--failures]
       [--no-tests] [--more-tests] [--nocolor] [-h]

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

       All parameters are optional; The default without parameters is to run 
       against the number of commits appropriate to the most recent bug number
       in the git log, running all qa tests, all unit tests changed by the patchset
       with color output enabled.

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]