Skip to content
This repository was archived by the owner on Jul 14, 2026. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

521 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Note

This repository hasn't been used in some time for an actual test harness. It has been archived for this reason specifically, but is kept as an example of implementing a custom pytest harness for CMake related options.

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.

About

Execute CMake Presets via pytest

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages