pytest-cmake 0.8.4__tar.gz → 0.9.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytest_cmake-0.8.4 → pytest_cmake-0.9.0}/PKG-INFO +1 -1
- {pytest_cmake-0.8.4 → pytest_cmake-0.9.0}/cmake/FindPytest.cmake +4 -3
- {pytest_cmake-0.8.4 → pytest_cmake-0.9.0}/cmake/PytestAddTests.cmake +4 -0
- {pytest_cmake-0.8.4 → pytest_cmake-0.9.0}/pyproject.toml +1 -1
- {pytest_cmake-0.8.4 → pytest_cmake-0.9.0}/setup.py +1 -1
- {pytest_cmake-0.8.4 → pytest_cmake-0.9.0}/.gitignore +0 -0
- {pytest_cmake-0.8.4 → pytest_cmake-0.9.0}/LICENSE +0 -0
- {pytest_cmake-0.8.4 → pytest_cmake-0.9.0}/README.md +0 -0
- {pytest_cmake-0.8.4 → pytest_cmake-0.9.0}/build_backend.py +0 -0
- {pytest_cmake-0.8.4 → pytest_cmake-0.9.0}/build_config.py +0 -0
@@ -55,8 +55,8 @@ if (Pytest_FOUND AND NOT TARGET Pytest::Pytest)
|
|
55
55
|
|
56
56
|
function(pytest_discover_tests NAME)
|
57
57
|
cmake_parse_arguments(
|
58
|
-
PARSE_ARGV 1 "" ""
|
59
|
-
"WORKING_DIRECTORY;TRIM_FROM_NAME
|
58
|
+
PARSE_ARGV 1 "" "STRIP_PARAM_BRACKETS;BUNDLE_TESTS"
|
59
|
+
"WORKING_DIRECTORY;TRIM_FROM_NAME"
|
60
60
|
"LIBRARY_PATH_PREPEND;PYTHON_PATH_PREPEND;ENVIRONMENT;DEPENDS"
|
61
61
|
)
|
62
62
|
|
@@ -123,8 +123,9 @@ if (Pytest_FOUND AND NOT TARGET Pytest::Pytest)
|
|
123
123
|
-D "LIBRARY_PATH=${LIBRARY_PATH}"
|
124
124
|
-D "PYTHON_PATH=${PYTHON_PATH}"
|
125
125
|
-D "TRIM_FROM_NAME=${_TRIM_FROM_NAME}"
|
126
|
+
-D "STRIP_PARAM_BRACKETS=${_STRIP_PARAM_BRACKETS}"
|
126
127
|
-D "WORKING_DIRECTORY=${_WORKING_DIRECTORY}"
|
127
|
-
|
128
|
+
-D "ENVIRONMENT=${ENCODED_ENVIRONMENT}"
|
128
129
|
-D "PROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR}"
|
129
130
|
-D "CTEST_FILE=${_tests_file}"
|
130
131
|
-P "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/PytestAddTests.cmake")
|
@@ -97,6 +97,10 @@ if(CMAKE_SCRIPT_MODE_FILE)
|
|
97
97
|
set(test_name "${_func}")
|
98
98
|
endif()
|
99
99
|
|
100
|
+
if (STRIP_PARAM_BRACKETS)
|
101
|
+
string(REGEX REPLACE "\\[(.+)\\]$" ".\\1" test_name "${test_name}")
|
102
|
+
endif()
|
103
|
+
|
100
104
|
set(test_name "${TEST_GROUP_NAME}.${test_name}")
|
101
105
|
set(test_case "${WORKING_DIRECTORY}/${line}")
|
102
106
|
|
@@ -9,7 +9,7 @@ backend-path = ["."]
|
|
9
9
|
|
10
10
|
[project]
|
11
11
|
name = "pytest-cmake"
|
12
|
-
version = "0.
|
12
|
+
version = "0.9.0"
|
13
13
|
description = "Provide CMake module for Pytest"
|
14
14
|
readme = "README.md"
|
15
15
|
requires-python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|