Jenkins tests update
Yesterday I updated the master tasks script for launching unit tests. I did it so more tests are run (which were currently ommited). It looks like this: export TEST_QA=1 export JUNIT_OUTPUT_FILE='junit_output.xml' PERL5OPT='-MDevel::Cover' prove \ --timer --harness=TAP::Harness::JUnit \ t/ \ t/db_dependent/ \ t/db_dependent/Acquisition \ t/db_dependent/Circulation \ t/db_dependent/Holds \ t/db_dependent/Koha \ t/db_dependent/Labels \ t/db_dependent/Members \ t/db_dependent/Record \ t/db_dependent/Reports \ t/db_dependent/Search \ t/db_dependent/Serials \ xt/author/icondirectories.t \ xt/author/podcorrectness.t \ xt/author/translatable-templates.t \ xt/author/valid-templates.t \ xt/permissions.t \ xt/tt_valid.t \ xt/yaml_valid.t \ xt/single_quotes.t The difference with the previous is the addition of several (not all) t/db_dependent subdirectories. We cannot run prove recursively because not everything are unit tests. RMaints: If you agree with the change, I'll propagate (manually) this change to the stable branches tasks. Also, if anyone finds something still missing just let me know. For instance I haven't spent time on looking at t/ subdirectories. Thanks in advance To+ -- Tomás Cohen Arazi Prosecretaría de Informática Universidad Nacional de Córdoba ✆ +54 351 5353750 ext 13168 GPG: B76C 6E7C 2D80 551A C765 E225 0A27 2EA1 B2F3 C15F
Hie, Sounds great. +1 Le 16/07/2014 18:46, Tomas Cohen Arazi a écrit :
Yesterday I updated the master tasks script for launching unit tests. I did it so more tests are run (which were currently ommited). It looks like this:
export TEST_QA=1 export JUNIT_OUTPUT_FILE='junit_output.xml' PERL5OPT='-MDevel::Cover' prove \ --timer --harness=TAP::Harness::JUnit \ t/ \ t/db_dependent/ \ t/db_dependent/Acquisition \ t/db_dependent/Circulation \ t/db_dependent/Holds \ t/db_dependent/Koha \ t/db_dependent/Labels \ t/db_dependent/Members \ t/db_dependent/Record \ t/db_dependent/Reports \ t/db_dependent/Search \ t/db_dependent/Serials \ xt/author/icondirectories.t \ xt/author/podcorrectness.t \ xt/author/translatable-templates.t \ xt/author/valid-templates.t \ xt/permissions.t \ xt/tt_valid.t \ xt/yaml_valid.t \ xt/single_quotes.t
The difference with the previous is the addition of several (not all) t/db_dependent subdirectories. We cannot run prove recursively because not everything are unit tests.
RMaints: If you agree with the change, I'll propagate (manually) this change to the stable branches tasks.
Also, if anyone finds something still missing just let me know. For instance I haven't spent time on looking at t/ subdirectories.
Thanks in advance To+
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
-- Fridolin SOMERS Biblibre - Pôles support et système fridolin.somers@biblibre.com
Hi, I would prefer something more generic. I sometimes add new sub-directories and it will be a pain to manually maintain the dir list. For instance, it seems the configuration you propose does not take into account the issuingRules sub-directory in t/db_dependent/Circulation. Is it possible to launch several prove commands? We could imagine something like find t -name "*.t" -exec /usr/bin/prove {} \; Otherwise, it should be possible to generate an exhaustive unit test file list present in the t directory and pass it to prove. Cheers, Jonathan 2014-07-16 18:46 GMT+02:00 Tomas Cohen Arazi <tomascohen@gmail.com>:
Yesterday I updated the master tasks script for launching unit tests. I did it so more tests are run (which were currently ommited). It looks like this:
export TEST_QA=1 export JUNIT_OUTPUT_FILE='junit_output.xml' PERL5OPT='-MDevel::Cover' prove \ --timer --harness=TAP::Harness::JUnit \ t/ \ t/db_dependent/ \ t/db_dependent/Acquisition \ t/db_dependent/Circulation \ t/db_dependent/Holds \ t/db_dependent/Koha \ t/db_dependent/Labels \ t/db_dependent/Members \ t/db_dependent/Record \ t/db_dependent/Reports \ t/db_dependent/Search \ t/db_dependent/Serials \ xt/author/icondirectories.t \ xt/author/podcorrectness.t \ xt/author/translatable-templates.t \ xt/author/valid-templates.t \ xt/permissions.t \ xt/tt_valid.t \ xt/yaml_valid.t \ xt/single_quotes.t
The difference with the previous is the addition of several (not all) t/db_dependent subdirectories. We cannot run prove recursively because not everything are unit tests.
RMaints: If you agree with the change, I'll propagate (manually) this change to the stable branches tasks.
Also, if anyone finds something still missing just let me know. For instance I haven't spent time on looking at t/ subdirectories.
Thanks in advance To+
-- Tomás Cohen Arazi Prosecretaría de Informática Universidad Nacional de Córdoba ✆ +54 351 5353750 ext 13168 GPG: B76C 6E7C 2D80 551A C765 E225 0A27 2EA1 B2F3 C15F
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
participants (3)
-
Fridolin SOMERS -
Jonathan Druart -
Tomas Cohen Arazi