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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 15 15:17:57 CET 2017


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

            Bug ID: 19821
           Summary: Run tests on a separate database
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: enhancement
          Priority: P5 - low
         Component: Test Suite
          Assignee: julian.maurice at biblibre.com
          Reporter: julian.maurice at biblibre.com
        QA Contact: testopia at bugs.koha-community.org

Running the tests on the same database as the one used for dev has some
drawbacks:
- Everybody has different data, so we cannot make any assumptions about data in
tests and it can make tests fail for non-obvious reasons.
- Tests have to clean up every change to the database using SQL transactions,
so we cannot write testable code that use transactions (AFAIK)
- Transactions in tests happen to be committed sometimes, resulting in garbage
data added to the dev database

I'll send a patch that allows to run tests in a separate database in order to
address these issues.

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


More information about the Koha-bugs mailing list