ThrowTheSwitch / Ceedling

Ruby-based unit testing and build system for C projects
http://throwtheswitch.org
Other
583 stars 244 forks source link

Empty Code coverage when mock is used #934

Open flamingvines2 opened 6 days ago

flamingvines2 commented 6 days ago

Hi,

I have 2 source (main and driver) that I am generating a coverage report using gcovr. Main doesn't use any mocks while driver use mock. I don't have any issue generating the coverage for main. However, driver has an empty coverage.

Please see attached for details. My build log out.txt project.yml.txt My source files driver.c.txt driver.h.txt

My versions are: Ceedling:: 0.31.1 Unity:: 2.5.4 CMock:: 2.5.4 CException:: 1.3.3 gcovr 4.1

I would appreciate if anyone can point me to what is wrong in my setup or code.

FYI: This is a duplicate of Link. Not sure which is the correct place for this since I am triggering gcovr via Ceedling. I will gladly remove one of them if inappropriate.

Thanks, Carlo

flamingvines2 commented 5 days ago

There was no output for driver (driver.o). Probably the reason why gcov is saying no coverage. Wondering what is wrong with it?