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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pytest-cmake-presets-0.0.0.dev0.tar.gz.

File metadata

  • Download URL: pytest-cmake-presets-0.0.0.dev0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.5 Windows/10

File hashes

Hashes for pytest-cmake-presets-0.0.0.dev0.tar.gz
Algorithm Hash digest
SHA256 b5b39ab741a9f3fe75ded6d80a6939e85681ce86a33a2b36a551c46eddf4b7fd
MD5 48308f00f08d9da147ceb4193fe4398b
BLAKE2b-256 efbf6807c2ced1514b74ee7ae2ce25f4cdf9ba6cd73ea682c48d25bcaefe507c

See more details on using hashes here.

File details

Details for the file pytest_cmake_presets-0.0.0.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_cmake_presets-0.0.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4d264b5bdd0d724b1c8d95da456474aa4909bee8026810b241ea8cca644b493
MD5 124459ab7e299f64f206edd0d55f9b3d
BLAKE2b-256 db0e67d866475b0195baed787001abcf3dd00ad5eac3c6413917a355b33c63e4

See more details on using hashes here.

Supported by

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