Can ceedling use pre-generated mocks #994
silabs-theophilel
started this conversation in
General
Replies: 1 comment 6 replies
-
Why dont you just copy the build/test/mocks folder among the jobs as cache or artifacts? Ceedling will see that files are there and should not regenerated them. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ceedling generate for each modules (ceedling test:all) mocks at build time, while this may be a good design for local work, in a CI this could increase job time for large projects.
Is there a configuration to make use of mocks generated once or use a cache mecanism?
Let's say we generate them manually, we put them somewhere and configure ceedling to use these mocks once and for all not generating them. Is that possible?
Is it possible to configure Ceedling to generate mocks only once if run multiple time in chain? I figure that this may not be a solution in CI jobs because each jobs start from scratch, pull the sources, rebuild the project, etc ... so mocks won't be generated there in the unit-test stage. But at least if it is possible to do it locally to decrease the build/test time when running the test:all command.
Beta Was this translation helpful? Give feedback.
All reactions