coverage report not populating

522 views
Skip to first unread message

Nick Mazzilli

unread,
Feb 17, 2021, 7:59:04 PM2/17/21
to ThrowTheSwitch Forums
I have got my unit tests up and working correctly and even code coverage report but I am unable to generate the html reports. Has anyone run into this?

ceedling 0.31.0 

:plugins:
  :load_paths:
    - "#{Ceedling.load_path}"
  :enabled:
    - gcov
    - module_generator
    - xml_tests_report
    - stdout_gtestlike_tests_report

:gcov:
  :utilities:
    - gcovr 
    - ReportGenerator
  :reports:
    - HtmlDetailed
    - Xml
  :gcovr:
    :html_title: OurNextEnergy
    :html_medium_threshold: 75
    :html_high_threshold: 90

Capture21.PNG

Nick Mazzilli

unread,
Feb 17, 2021, 8:03:36 PM2/17/21
to ThrowTheSwitch Forums
gcovr 4.2

Nick Mazzilli

unread,
Aug 17, 2021, 12:26:39 PM8/17/21
to ThrowTheSwitch Forums
Can anyone recommend anything here?

Nick Mazzilli

unread,
Aug 17, 2021, 12:51:52 PM8/17/21
to ThrowTheSwitch Forums

ceedling gcov:all utils:gcov causes an error. 

pass.PNG

I can get this to work ceedling gcov:all and display coverage metrics but not with the utils command I get this error 

error.PNG

Joe Trainor

unread,
Aug 27, 2021, 1:19:17 PM8/27/21
to ThrowTheSwitch Forums
Hello,

For gcov I typically use the following commands:

ceedling gcov:tsp
ceedling utils:gcov

The html file is located at build\artifacts\gcov\GcovCoverageResults.html.

Also, I found that gcovr 4.2 did not work for me so I forced it to 4.1

pip install gcovr==4.1

Hope this helps.

Nick Mazzilli

unread,
Aug 27, 2021, 1:33:30 PM8/27/21
to ThrowTheSwitch Forums
Thank you Joe! Reverting back to gcovr 4.1 makes it work

I appreciate the help

Reply all
Reply to author
Forward
0 new messages