{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/4"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/3"}],"enrichment":{"capability":"A pytest plugin that discovers and runs C++ tests from Google Test, Boost.Test, and Catch2 frameworks using pytest's test runner and reporting infrastructure.","skillfed_tags":["c++-testing","multi-language-projects","test-integration"],"use_cases":["Run all tests in a multi-language project (Python and C++) with one pytest command.","Generate a single JUnit XML report combining results from both Python and C++ test suites.","Parallelize C++ test execution across multiple cores using pytest-xdist.","Filter and select which C++ tests to run using pytest's standard -k keyword matching.","Wrap C++ test execution with memory checkers (valgrind) or emulators (qemu) for testing in non-native environments."],"what_it_does":"pytest-cpp is a pytest plugin that bridges Python's test runner with C++ test frameworks, allowing you to discover and execute C++ tests using pytest's command-line interface and reporting tools. It automatically detects test binaries built with Google Test, Boost.Test, or Catch2, and integrates them into your pytest workflow.\n\nThe plugin lets you run mixed Python and C++ test suites with a single pytest command, apply pytest's standard filtering (like -k for keyword matching), generate unified JUnit XML reports, and parallelize C++ test execution using pytest-xdist. It supports configuration options for specifying which files to test, passing arguments to C++ test binaries, and wrapping test execution with tools like valgrind or emulators for cross-compilation scenarios.","worth_installing":"Yes. If you maintain a multi-language project with C++ and Python tests, this plugin eliminates the need for separate test runners and reporting pipelines. It has low install friction, active maintenance, no known vulnerabilities, and a permissive MIT license. The only prerequisite is having compiled C++ test binaries; the plugin does not compile code itself."},"id":"pytest-cpp","links":{"html":"https://skillfed.io/packages/pytest-cpp","md":"https://skillfed.io/packages/pytest-cpp.md","pypi":"https://pypi.org/project/pytest-cpp/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-09-18","license_spdx":null,"license_treatment":"permissive","name":"pytest-cpp","python_support":"supports_current","summary":"Use pytest's runner to discover and execute C++ tests"},"popularity":{"monthly_downloads":277298,"position":8148,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.6.0"}
