You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, I want to say thanks for all your work on Ceedling.
I have a (probably niche) issue when using Ceedling with the command_hooks plugin, specifically with the pre_build hook.
Due to the nature of the project, we have some source files (.c and .h) that need to be generated before running our tests. I've setup a command hook which just calls a script to generate these files. They are created in the test/support folder.
This all works as expected and the hook runs successfully. However, it appears that Ceedling generates its list of source/support files before the pre_build hook is run. This means that the generated files aren't compiled as they weren't picked up earlier.
This only happens the first time you run the Ceedling project with a clean repository. By the second time you run it, then the source files have already been generated, and everything works as expected.
Without being familiar with the code base, an easy fix for this seems to be just to move the invocation of the pre_build hook to somewhere closer to Ceedling starting up.
Hi,
Firstly, I want to say thanks for all your work on Ceedling.
I have a (probably niche) issue when using Ceedling with the
command_hooks
plugin, specifically with thepre_build
hook.Due to the nature of the project, we have some source files (
.c
and.h
) that need to be generated before running our tests. I've setup a command hook which just calls a script to generate these files. They are created in thetest/support
folder.This all works as expected and the hook runs successfully. However, it appears that Ceedling generates its list of source/support files before the
pre_build
hook is run. This means that the generated files aren't compiled as they weren't picked up earlier.This only happens the first time you run the Ceedling project with a clean repository. By the second time you run it, then the source files have already been generated, and everything works as expected.
Without being familiar with the code base, an easy fix for this seems to be just to move the invocation of the
pre_build
hook to somewhere closer to Ceedling starting up.Thanks,
Adam
Environment:
The text was updated successfully, but these errors were encountered: