3.1.29.2.10. waf_tools.mock.setup

waf_tools.mock.setup(self: task_gen) → None

Set up mock generation and test runner creation for a test target.

For each task generator with the test feature:

  1. Preprocesses mock header files (via the preprocess tool).

  2. Creates CMock tasks to generate Mock<Header>.h/.c from the cleaned headers.

  3. Creates a Runner task to generate a <test>_Runner.c file containing the Unity main() entry point.

  4. Extends self.source with the generated mock and runner files.