[Koha-bugs] [Bug 19821] Run tests on a separate database
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Apr 21 22:02:54 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19821
--- Comment #61 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Signed off, I did nothing more than what's the test plan in the patch so I hope
I didn't missed something when I rewrote it.
The only thing that I'm not confident about is «verify that the database you
use usually was untouched»
Before there was in the test plan:
> (you can edit the test file and comment the lines related to a transaction (txn_begin, txn_rollback))
There are none in selenium/00-installation.t
Is counting the users in the main DB before and after the install tests enough?
Or checking that the user "SuperL" created during the test isn't in the main
DB?
== Diff of the test plan ==
=== Before ===
Test plan:
1. mysql> GRANT ALL PRIVILEGES ON koha_test.* TO
<your-db-user>@localhost
2. cd /path/to/koha
3. prove t/db_dependent/<pick-your-favorite-test-here>.t
4. Verify that it created the database koha_test and that the one you
use usually was untouched (you can edit the test file and comment the
lines related to a transaction (txn_begin, txn_rollback))
=== After ===
Test plan:
1. Apply bug 19185 which will also apply these patches
2. In the DBMS run `select count(*) from koha_kohadev.borrowers;`
(adapt if your usual koha DB isn't koha_kohadev)
3. Run the test plan of bug 19185 and during execution of the
installation test, pay attention to the following:
4. List the databases in the DBMS (show databases;) to ensure that
koha_test is created
5. After the test has run, the koha_test database should not be here anymore.
6. In the DBMS run `select count(*) from koha_kohadev.borrowers;`
7. That was to verify that the database you use usually was untouched.
The counts should be the same.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list