SanderMertens / bake

Bake, A build system for building, testing and running C & C++ projects
GNU General Public License v3.0
681 stars 53 forks source link

Add parametrizable tests #103

Closed SanderMertens closed 6 months ago

SanderMertens commented 6 months ago

This PR adds a feature that enables parametrizable test cases. Example:

{
    "id": "MySuite",
    "params": {
        "kind": ["foo", "bar"]
    }
}

The MySuite test suite will be executed twice, once with foo as value for the kind parameter, and once with bar. Test cases can get the parameter value with test_param(param_name).