Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gui/test/resultstree/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
endif()

if (REGISTER_GUI_TESTS)
# TODO: does not work in the CI
# add_test(NAME test-resultstree COMMAND $<TARGET_FILE:test-resultstree>)
# TODO: might crash - see #13223
#add_test(NAME test-resultstree COMMAND $<TARGET_FILE:test-resultstree> -platform offscreen)
endif()

add_dependencies(gui-tests test-resultstree)
3 changes: 1 addition & 2 deletions gui/test/translationhandler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
endif()

if (REGISTER_GUI_TESTS)
# TODO: requires X session - run with QT_QPA_PLATFORM=offscreen?
#add_test(NAME test-translationhandler COMMAND $<TARGET_FILE:test-translationhandler>)
add_test(NAME test-translationhandler COMMAND $<TARGET_FILE:test-translationhandler> -platform offscreen)
endif()

add_dependencies(gui-tests test-translationhandler)
2 changes: 1 addition & 1 deletion gui/test/translationhandler/testtranslationhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static QStringList getTranslationNames(const TranslationHandler& handler)
void TestTranslationHandler::construct() const
{
TranslationHandler handler;
QCOMPARE(getTranslationNames(handler).size(), 13); // 12 translations + english
QCOMPARE(getTranslationNames(handler).size(), 15); // 14 translations + english
QCOMPARE(handler.getCurrentLanguage(), QString("en"));
}

Expand Down