[Koha-bugs] [Bug 19821] Run tests on a separate database

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Dec 18 12:12:49 CET 2017


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

--- Comment #9 from Julian Maurice <julian.maurice at biblibre.com> ---
(In reply to Marcel de Rooy from comment #8)
> Interesting.
> I'm just thinking if we should not resolve the garbage data problem instead
> of working around it with another database.
Sure we could, but
1) I think it cannot be fixed once and for all (patch writer could forget to
setup the DB transaction in tests, when you will test the patch it will alter
your database)
2) It doesn't fix the other problems (non obvious fails caused by different
data, non testable "transactions-using" code)

> I would rather not default to another database.
Can you elaborate on why you prefer to keep only one database ?

> If you create an additional clone with db and koha-conf, you can just run
> another export KOHA_CONF and run a test on the other db?
Right, but
1) It's error-prone (I know I will forget to change KOHA_CONF at some point)
2) If I'm the only one doing that, it only fixes my "garbage data" problem. 

However if everyone starts using the same database for tests, it might ease
writing and running tests. It also make testing with another marcflavour very
easy (maybe some day all tests will pass in UNIMARC... :))

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


More information about the Koha-bugs mailing list