mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Move tests to their own folder.
This commit is contained in:
@@ -32,6 +32,7 @@ mo2_python_pip_install(python-tests
|
||||
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/pylibs
|
||||
PACKAGES pytest PyQt6==6.3.0)
|
||||
add_dependencies(python-tests mobase)
|
||||
set_target_properties(python-tests PROPERTIES FOLDER tests/python)
|
||||
|
||||
file(GLOB test_files CONFIGURE_DEPENDS "test_*.cpp")
|
||||
foreach (test_file ${test_files})
|
||||
@@ -42,6 +43,7 @@ foreach (test_file ${test_files})
|
||||
set_target_properties(${target}
|
||||
PROPERTIES
|
||||
OUTPUT_NAME ${pymodule}
|
||||
FOLDER tests/python
|
||||
LIBRARY_OUTPUT_DIRECTORY "${PYLIB_DIR}/mobase_tests")
|
||||
|
||||
if(DEFINED CMAKE_CONFIGURATION_TYPES)
|
||||
|
||||
@@ -7,6 +7,8 @@ cmake_minimum_required(VERSION 3.22)
|
||||
add_executable(runner-tests EXCLUDE_FROM_ALL)
|
||||
mo2_configure_tests(runner-tests WARNINGS OFF)
|
||||
|
||||
set_target_properties(runner-tests PROPERTIES FOLDER tests/runner)
|
||||
|
||||
# add mocks
|
||||
target_include_directories(runner-tests
|
||||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../mocks)
|
||||
|
||||
Reference in New Issue
Block a user