D28890: Make UI tests use a separate userdb

Eric Dejouhanet noreply at phabricator.kde.org
Thu Apr 16 17:28:19 BST 2020


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20200416/7da29d66/attachment.html>


More information about the kde-edu mailing list