Release Notes
0.11.1
27 October 2024changed
Updated the
pytest_discover_tests()
function to avoid rediscovering tests with every build. Thanks @mhx!
0.11.0
15 October 2024new
Added
PROPERTIES
option to thepytest_discover_tests()
function, providing custom test properties for all generated tests.
0.10.0
11 October 2024new
Added
INCLUDE_FILE_PATH
option to thepytest_discover_tests()
function, allowing the file path to be included in the test identifier.new
Added
TRIM_FROM_FULL_NAME
option to thepytest_discover_tests()
function, enabling parts of the full test name to be trimmed.fixed
Fixed the
BUNDLE_TESTS
option to thepytest_discover_tests()
function which was poorly implemented.changed
Replace Boost.Python with nanobind for the example module.
0.9.0
8 October 2024new
Added
STRIP_PARAM_BRACKETS
option to thepytest_discover_tests()
function to strip square brackets used for parametrizing tests.
0.8.4
6 October 2024fixed
Corrected the CMake version upper bound from 3.30 to 3.31.
changed
Added documentation for Package Deployment.
changed
Added link to Github Project in documentation.
0.8.3
16 August 2024fixed
Fixed the
pytest_discover_tests()
function by serializing the ENVIRONMENT entries before transferring them to the intermediate script.
0.8.2
9 August 2024new
Added compatibility with CMake 3.30.
0.8.1
8 August 2024fixed
Ensure that the ‘PYTEST_EXECUTABLE’ variable is correctly serialized when the tests are created to handle cases where the path might contain spaces or special characters.
0.8.0
1 August 2024changed
Improved the
pytest_discover_tests()
function to use an intermediate CMake script during CTest runs. This update enables partial builds that exclude the corresponding CMake target to be executed and tested.
0.7.0
31 May 2024fixed
Updated CMake script to enable the trimming of class and method names on discovered tests.
changed
Updated documentation.
0.6.0
11 May 2024changed
Updated CMake script to ensure that environment variables are preserving the Windows-style path syntax when running the tests.
changed
Improve tests.
0.5.2
6 May 2024fixed
Updated test collection logic to ensure that the ‘rootdir’ is a real path. Previously, running the tests from a symlinked directory could result in errors when discovering ‘conftests’ configurations.
0.5.1
17 March 2024fixed
Fixed CI Deployment script.
0.5.0
17 March 2024changed
Updated CMake script now interrupts the build if the Python test collection fails.
0.4.1
17 March 2024fixed
As of Hatching v1.22, dynamic dependencies during build time must be imported lazily. Therefore, the backend script has been updated to import ‘pytest’ only when the build hook is called.
See also
0.4.0
3 March 2024fixed
Fixed CMake script to ensure that library and Python path list environment variables are represented as strings before serializing the CTest commands.
changed
Updated Github CI script to run all tests once a week.
new
Added compatibility with Pytest v8 and CMake 3.29.
0.3.0
18 July 2023new
Added
ENVIRONMENT
option to thepytest_discover_tests()
function to provide custom environment variables during the tests.See also
0.2.1
20 January 2023fixed
Updated configuration to include custom backend script in Python distribution.
fixed
Fixed incorrect CMake functions in documentation.
0.2.0
20 January 2023changed
Added custom build backend to ensure compatibility with Python 2.7.
0.1.0
13 December 2022new
Initial release with the Pip package manager.