[Koha-bugs] [Bug 19185] Web installer and onboarding tool selenium test

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 25 17:55:28 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185

--- Comment #50 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
I see that it's ran only by the CI:
>    skip "This test must be run with an empty DB. We are using KOHA_TESTING that is set by our CI\nIf you really want to run it, set this env var.", 2 unless $ENV{KOHA_TESTING};

Shouldn't the output of skip end up in the terminal when running prove?
Tests finished very (1sec) fast on local Koha and only reading the code allowed
me to know the cause.
Linked to this is the fact that we use skip to check for Selenium lib being
installed. So based on what I see, it should skip (an mark as passed!) the
tests when Selenium lib isn't there :o


What would be the simplest way to run the full test suite locally?

> prove -r t/ xt/ -j $(nproc) --rules='seq=t/db_dependent/**.t'
> echo "DROP DATABASE koha_kohadev; CREATE DATABASE koha_kohadev;" | koha-mysql kohadev
> restart_all
> prove t/db_dependent/selenium/

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list