Skip to content

Commit 2be2052

Browse files
committed
WIP: Test CI based UI test
1 parent af4d7d2 commit 2be2052

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/run-unit-tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,17 @@ jobs:
8686
run: |
8787
export QTDIR=${{env.OUTPUTDIR}}/Qt/$QT_VERSION/gcc_64
8888
mkdir build && cd build
89-
${QTDIR}/bin/qt-cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ../tests
89+
${QTDIR}/bin/qt-cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ..
9090
91-
- name: Build unit tests
91+
- name: Build app
9292
run: |
9393
cd build
9494
cmake --build . --config ${{env.BUILD_TYPE}} --parallel $(nproc)
95+
ls -lha
9596
96-
- name: Run unit test
97+
- name: Run UI smoke test
9798
run: |
9899
cd build
99100
# The following line needs 'QT_QPA_PLATFORM=offscreen' in order to run on the headless CI server
100-
QT_DEBUG_PLUGINS=1 QT_QPA_PLATFORM=offscreen ctest --rerun-failed --output-on-failure
101+
QT_QPA_PLATFORM=offscreen ./bin/venus-gui-v2 --mock --skip-splash --ui-test smoke/mock-maximal
102+

cmake/ModuleUiTest.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ qt_add_qml_module(VictronUiTest
99
if (${VENUS_GX_BUILD})
1010
qt_query_qml_module(VictronUiTest QML_FILES module_qml_files QMLDIR module_qmldir)
1111
install(FILES ${module_qmldir} DESTINATION ${CMAKE_INSTALL_BINDIR}/Victron/UiTest)
12-
install(DIRECTORY tests/ui DESTINATION ${CMAKE_INSTALL_BINDIR}/Victron/UiTest)
12+
install(DIRECTORY tests/ui DESTINATION ${CMAKE_INSTALL_BINDIR}/Victron/UiTest/tests)
1313
endif()
1414

1515
qt_add_resources(VictronUiTest "VictronUiTest_resources"

tests/ui/smoke/mock-maximal/mock-maximal.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"ExitWhenFinished": true,
33
"Logging": "info",
44
"Tests": [
5-
"tst_cards.qml",
65
"tst_overview.qml",
7-
"tst_settings.qml"
86
],
97
"Mock": {
108
"Configuration": ":/data/mock/conf/maximal.json",

0 commit comments

Comments
 (0)