Skip to content

Commit

Permalink
Platform specifically for test
Browse files Browse the repository at this point in the history
  • Loading branch information
alex1701c committed Oct 12, 2024
1 parent 1bc46eb commit f47a11d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,7 @@ jobs:
cmake --install .
- name: Run tests
env:
Qt_QPA_PLATFORM: offscreen
run: |
cd build
echo $Qt_QPA_PLATFORM
ctest -V
1 change: 1 addition & 0 deletions autotests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED CONFIG COMPONENTS

ecm_add_test(jetbrainsrunnerintegrationtest.cpp LINK_LIBRARIES Qt::Test KF${QT_MAJOR_VERSION}::Runner KF${QT_MAJOR_VERSION}::Service)
krunner_configure_test(jetbrainsrunnerintegrationtest krunner_jetbrainsrunner)
set_tests_properties(jetbrainsrunnerintegrationtest PROPERTIES ENVIRONMENT "QT_QPA_PLATFORM=offscreen")

if (COMMAND krunner_configure_test)
krunner_configure_test(jetbrainsrunnerintegrationtest krunner_jetbrainsrunner)
Expand Down

0 comments on commit f47a11d

Please sign in to comment.