[Koha-bugs] [Bug 19821] Run tests on a separate database
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Feb 17 14:48:05 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19821
Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Failed QA |Signed Off
--- Comment #29 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Josef Moravec from comment #27)
> So, let's start QA process:
>
> 1) Pass the database name from proverc file is not possible, but still in
> .proverc.dist as example/default...
Yes, maybe we need to remove proverc in this iteration, and readd it later. So
far no args is used from Bootstrap.
> 2) No tables are created in Bootstrap.pm, the structure creation was removed
> in
> "Do not modify KOHA_CONF, use new database_test entry instead" patch
Yes it is:
30 $dbh->do("DROP DATABASE IF EXISTS $database_test");
31 $dbh->do("CREATE DATABASE $database_test");
I cannot retest right now, my selenium tests do not run (local issue).
TODO: remove proverc and update the test plan.
Test plan:
- prove t/db_dependent/selenium/authentication.t # "database" from conf will
be used
- prove -Mt::lib::Bootstrap t/db_dependent/selenium/authentication.t # will
die because "database_test" does not exist
- Add the database_test entry to your koha-conf, use the same value as database
- prove -Mt::lib::Bootstrap t/db_dependent/selenium/authentication.t # die
with "same values"
- Modify database_test to be different than database
- prove -Mt::lib::Bootstrap t/db_dependent/selenium/authentication.t # Will
drop, create and use "database_test" to run the tests.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list