Skip to content
Snippets Groups Projects
Commit 66bd1e9e authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

redirect Unit/GUI test output to test_output/

parent 6a20693d
No related branches found
No related tags found
1 merge request!1385send output from GUI unit tests to test_output/
...@@ -5,7 +5,7 @@ set(test UnitTestGUI) ...@@ -5,7 +5,7 @@ set(test UnitTestGUI)
file(GLOB source_files *.cpp) file(GLOB source_files *.cpp)
find_package(Qt6Core REQUIRED) find_package(Qt6Core REQUIRED)
find_package(Qt6Test REQUIRED) find_package(Qt6Test REQUIRED) # provides QSignalSpy and QTest
include_directories(${CMAKE_SOURCE_DIR}/Tests/Unit/utilities) include_directories(${CMAKE_SOURCE_DIR}/Tests/Unit/utilities)
...@@ -13,4 +13,8 @@ set(CMAKE_AUTOMOC ON) ...@@ -13,4 +13,8 @@ set(CMAKE_AUTOMOC ON)
add_executable(${test} ${source_files}) add_executable(${test} ${source_files})
target_link_libraries(${test} BornAgainGUI gtest Qt6::Core Qt6::Test) target_link_libraries(${test} BornAgainGUI gtest Qt6::Core Qt6::Test)
gtest_discover_tests(${test} DISCOVERY_TIMEOUT 300 TEST_PREFIX Unit.GUI.) set(test_data_dir ${TEST_OUTPUT_DIR}/Unit/GUI)
file(MAKE_DIRECTORY ${test_data_dir})
gtest_discover_tests(${test} DISCOVERY_TIMEOUT 300 TEST_PREFIX Unit.GUI.
WORKING_DIRECTORY ${test_data_dir})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment