D28890: Make UI tests use a separate userdb
Eric Dejouhanet <[email protected]>
| Newsgroups | gmane.comp.kde.education |
|---|---|
| Message-ID | <[email protected]> |
TallFurryMan created this revision. TallFurryMan added a reviewer: KStars. Herald added a project: KDE Edu. Herald added a subscriber: kde-edu. TallFurryMan requested review of this revision. REVISION SUMMARY This differential makes UI tests independent on the local user settings by using the Qt Test Mode user. Basically it: - Uses test mode to make sure unitary userdb tests use a blank user db. - Uses test mode to make sure UI tests start from scratch, as the user folder is completely removed before testing. - Provides 'kstarsui.rc' explicitely when initializing KStars, so that (at last!) toolbars and menus are visible. Now anyone can safely run UI tests without the risk that one's carefully tuned Ekos configuration is lost. This differential should also fix builds made with no INDI dependency installed. TEST PLAN Execute kstars_ui_tests. REPOSITORY R321 KStars BRANCH improve__userdb_tests (branched from master) REVISION DETAIL https://phabricator.kde.org/D28890 AFFECTED FILES Tests/auxiliary/testksuserdb.cpp Tests/auxiliary/testksuserdb.h Tests/kstars_ui/CMakeLists.txt Tests/kstars_ui/kstars_ui_tests.cpp Tests/kstars_ui/kstars_ui_tests.h Tests/kstars_ui/test_ekos.cpp Tests/kstars_ui/test_ekos.h Tests/kstars_ui/test_ekos_focus.cpp Tests/kstars_ui/test_ekos_focus.h Tests/kstars_ui/test_ekos_simulator.cpp Tests/kstars_ui/test_ekos_simulator.h Tests/kstars_ui/test_ekos_wizard.cpp Tests/kstars_ui/test_ekos_wizard.h Tests/kstars_ui/test_kstars_startup.cpp Tests/kstars_ui/test_kstars_startup.h kstars/kstarsinit.cpp To: TallFurryMan, #kstars Cc: kde-edu, narvaez, apol