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%
|
|
||
|---|---|---|
| qa-tools/git | ||
| QohA | ||
| t | ||
| .gitlab-ci.yml | ||
| cpanfile | ||
| koha-qa.pl | ||
| LICENSE | ||
| perlcriticrc | ||
| README | ||
| TODO | ||
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]