D28890: Make UI tests use a separate userdb

Eric Dejouhanet <[email protected]>
Newsgroups gmane.comp.kde.devel.education
Message-ID <2bf9697a75a27eadd883d99242ba28d8__7690.16726860485$1587054527$gmane$org@localhost.localdomain>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.