[Koha-devel] some Koha qa-tools

Mason James mtj at kohaaloha.com
Thu Jul 19 04:54:48 CEST 2012


hi QA-ers

i've been working on some qa-tools for Koha, here...
 https://github.com/KohaAloha/koha-qa-tools


they are pretty clever! :)
the clever thing about them is they run the qa-tests both before and after a series of commits (using git)

they only generate errors for problems introduced by the commits, and nothing else 
 (so, no false-positives on existing errors)

they have been saving me much time when qa-testing, and also finding errors in patches that i did not see


they are also fast, as they only test the modified files, nothing else
so... fast and clever :p



the workflow is...

1) cd to your Koha git repo
$ cd your/koha.git 


2) apply some patch(es)
$ git bz apply 4460


3 run QA tests, for last $x patches...
$ koha-qa.pl -c 2
    - fb11ab9 Bug 4460 - Amazon's AssociateID tag not used in links so referred revenue lost
        koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
        koha-tmpl/opac-tmpl/prog/en/modules/opac-readingrecord.tt
        C4/Auth.pm
        koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
        koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt
        koha-tmpl/opac-tmpl/prog/en/modules/opac-readingrecord.tt
        koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt
    - perlcritic-progressive tests... OK
    - perl -c syntax tests... OK
    - xt/tt_valid.t tests... OK
    - xt/author/vaild-template.t tests... FAIL
        koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt FAIL


the code is currently a little 'hacky' ;) , but functional... (so good enough) 


cheers, Mason
-- 
KohaAloha, NZ

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 535 bytes
Desc: This is a digitally signed message part
URL: </pipermail/koha-devel/attachments/20120719/0818fa67/attachment-0001.pgp>


More information about the Koha-devel mailing list