Skip to main content

Execute CMake Presets via pytest

Project description

Overview

pytest-cmake-presets was written to find and "test" cmake-presets(7) as part of the IXM test harness. Each test is a single CMake preset that might be part of a larger project. There are two aspects to tests: running presets directly, and then testing the layout/result of the cmake-file-api(7) after the fact. These second tests are performed via normal pytest functions.

Tests can use the vendor.pytest-cmake-presets field to modify the expected outcome of some tests.

Specifically, fields like pass-regex, will-fail, etc., can all modify the behavior of an executed CMakePresetItem, allowing for some behavior to be modified in a data-oriented fashion, instead of requiring pytest fixtures to execute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-cmake-presets-0.0.0.dev0.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

pytest_cmake_presets-0.0.0.dev0-py3-none-any.whl (9.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page