.. _release/release_notes: ************* Release Notes ************* .. release:: 0.13.0 :date: 2025-02-16 .. change:: changed Added ``DISCOVERY_EXTRA_ARGS`` option to the :func:`pytest_discover_tests` function, allowing custom arguments to be passed to the :term:`Pytest` command during test collection. Thanks :github_user:`AmeyaVS`! .. release:: 0.12.0 :date: 2025-02-09 .. change:: changed Added ``EXTRA_ARGS`` option to the :func:`pytest_discover_tests` function, allowing custom arguments to be passed to the :term:`Pytest` command when executing each test. Thanks :github_user:`AmeyaVS`! .. release:: 0.11.4 :date: 2025-01-29 .. change:: fixed Updated scripts to prevent uninitialized variable errors when using `-Werror=dev `_ and `--warn-uninitialized `_ options. Thanks :github_user:`corrodedHash`! .. release:: 0.11.3 :date: 2025-01-19 .. change:: changed Updated the :ref:`api_reference` section to include details on how ``DEPENDS`` can be used to ensure the target rebuilds whenever the Python files containing :term:`Pytest` tests are modified. Thanks :github_user:`AmeyaVSingh`! .. release:: 0.11.2 :date: 2025-01-18 .. change:: fixed Updated the :func:`pytest_discover_tests` function to support special characters in test names and identifiers. Thanks :github_user:`corrodedHash`! .. release:: 0.11.1 :date: 2024-10-27 .. change:: changed Updated the :func:`pytest_discover_tests` function to avoid rediscovering tests with every build. Thanks :github_user:`mhx`! .. release:: 0.11.0 :date: 2024-10-15 .. change:: new Added ``PROPERTIES`` option to the :func:`pytest_discover_tests` function, providing custom `test properties `_ for all generated tests. .. release:: 0.10.0 :date: 2024-10-11 .. change:: new Added ``INCLUDE_FILE_PATH`` option to the :func:`pytest_discover_tests` function, allowing the file path to be included in the test identifier. .. change:: new Added ``TRIM_FROM_FULL_NAME`` option to the :func:`pytest_discover_tests` function, enabling parts of the full test name to be trimmed. .. change:: fixed Fixed the ``BUNDLE_TESTS`` option to the :func:`pytest_discover_tests` function which was poorly implemented. .. change:: changed Replace Boost.Python with nanobind for the example module. .. seealso:: https://nanobind.readthedocs.io/en/latest/ .. release:: 0.9.0 :date: 2024-10-08 .. change:: new Added ``STRIP_PARAM_BRACKETS`` option to the :func:`pytest_discover_tests` function to strip square brackets used for :term:`parametrizing tests`. .. release:: 0.8.4 :date: 2024-10-06 .. change:: fixed Corrected the CMake version upper bound from 3.30 to 3.31. .. change:: changed Added documentation for :ref:`installing/deployment`. .. change:: changed Added link to Github Project in documentation. .. release:: 0.8.3 :date: 2024-08-16 .. change:: fixed Fixed the :func:`pytest_discover_tests` function by serializing the `ENVIRONMENT` entries before transferring them to the intermediate script. .. release:: 0.8.2 :date: 2024-08-09 .. change:: new Added compatibility with CMake 3.30. .. release:: 0.8.1 :date: 2024-08-08 .. change:: fixed 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. .. release:: 0.8.0 :date: 2024-08-01 .. change:: changed Improved the :func:`pytest_discover_tests` function to use an intermediate CMake script during :term:`CTest` runs. This update enables partial builds that exclude the corresponding CMake target to be executed and tested. .. release:: 0.7.0 :date: 2024-05-31 .. change:: fixed Updated CMake script to enable the trimming of class and method names on discovered tests. .. change:: changed Updated documentation. .. release:: 0.6.0 :date: 2024-05-11 .. change:: changed Updated CMake script to ensure that environment variables are preserving the Windows-style path syntax when running the tests. .. seealso:: https://github.com/python-cmake/pytest-cmake/issues/22 .. change:: changed Improve tests. .. release:: 0.5.2 :date: 2024-05-06 .. change:: fixed 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. .. seealso:: https://github.com/pytest-dev/pytest/issues/12291 .. release:: 0.5.1 :date: 2024-03-17 .. change:: fixed Fixed CI Deployment script. .. release:: 0.5.0 :date: 2024-03-17 .. change:: changed Updated CMake script now interrupts the build if the Python test collection fails. .. release:: 0.4.1 :date: 2024-03-17 .. change:: fixed 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. .. seealso:: `BuildHookInterface.dependencies `_ .. release:: 0.4.0 :date: 2024-03-03 .. change:: fixed Fixed CMake script to ensure that library and Python path list environment variables are represented as strings before serializing the CTest commands. .. change:: changed Updated Github CI script to run all tests once a week. .. change:: new Added compatibility with Pytest v8 and CMake 3.29. .. release:: 0.3.0 :date: 2023-07-18 .. change:: new Added ``ENVIRONMENT`` option to the :func:`pytest_discover_tests` function to provide custom environment variables during the tests. .. seealso:: :ref:`tutorial/function` .. release:: 0.2.1 :date: 2023-01-20 .. change:: fixed Updated configuration to include custom backend script in Python distribution. .. change:: fixed Fixed incorrect CMake functions in documentation. .. release:: 0.2.0 :date: 2023-01-20 .. change:: changed Added custom build backend to ensure compatibility with Python 2.7. .. release:: 0.1.0 :date: 2022-12-13 .. change:: new Initial release with the :term:`Pip` package manager.