[Bug 41961] New: Cypress tests: Can we find an elegant way to mock C4::Context->config?
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41961 Bug ID: 41961 Summary: Cypress tests: Can we find an elegant way to mock C4::Context->config? Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Test Suite Assignee: chris@bigballofwax.co.nz Reporter: m.de.rooy@rijksmuseum.nl QA Contact: testopia@bugs.koha-community.org See also some discussion on bug 41247. On that bug report we modify koha-conf.xml temporarily during a test. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41961 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pedro.amorim@openfifth.co.u | |k -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41961 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41961 --- Comment #1 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Couldnt we do something similar like the OVERRIDE_SYSPREF_var stuff here ? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41961 --- Comment #2 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Marcel de Rooy from comment #1)
Couldnt we do something similar like the OVERRIDE_SYSPREF_var stuff here ?
Would be useful for instance to also disable plugins while running specific maintenance scripts (when you know what you are doing). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41961 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41961 --- Comment #3 from Jonathan Druart <jonathan.druart@gmail.com> --- I thought about an env var. But if we are testing the UI we need to flush_memcached and reload plack. It's not impossible, but the way we run the tests will need adjustments (run_tests.pl). It will need to know that a "restart" is needed before and after some tests. It's not ideal IMO. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org