{"categories":[{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools/3"}],"enrichment":{"capability":"Integrates Pytest with CMake build systems, enabling automatic discovery and execution of Python tests as part of C++ project builds.","skillfed_tags":["cmake-integration","mixed-language-testing"],"use_cases":["Integrate Python unit tests for C++ extension modules into a unified CMake test suite","Automatically discover and register Python tests as CTest entries without manual configuration","Set up controlled test environments by prepending library and Python paths before test execution","Run mixed C++ and Python tests in a single CI/CD pipeline using ctest"],"what_it_does":"pytest-cmake is a CMake module that bridges Pytest and CMake, allowing Python tests to be discovered and run as part of a C++ project's build system. It provides a find_package function to locate Pytest and a pytest_discover_tests function that automatically converts Python tests into CTest entries, which can then be executed and reported alongside native C++ tests.\n\nThe package is designed for mixed-language projects\u2014particularly those with C++ libraries that expose Python bindings. Instead of running Python tests separately, developers can integrate them into their CMake workflow, controlling test environment variables like library and Python paths, filtering test names, and declaring dependencies on compiled targets.","worth_installing":"Yes, if you maintain a CMake project with Python tests or C++ code with Python bindings. The package has low install friction, permissive licensing, and no known vulnerabilities. The aging maintenance status is a minor concern for a stable, narrowly-scoped integration tool, but the repository remains active and supports current Python versions."},"id":"pytest-cmake","links":{"html":"https://skillfed.io/packages/pytest-cmake","md":"https://skillfed.io/packages/pytest-cmake.md","pypi":"https://pypi.org/project/pytest-cmake/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2026-01-03","license_spdx":null,"license_treatment":"permissive","name":"pytest-cmake","python_support":"supports_current","summary":"Provide CMake module for Pytest"},"popularity":{"monthly_downloads":269703,"position":8252,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.0"}
