Hello All,
I am trying to create the coverage report for the executed tests.
The report is generated properly if I place the source files under the src folder.
However I am referring the source files from the software project folder by configuring the path in the yml file. In this case I can execute the tests and can see the coverage on the command prompt. But the html coverage report remains blank when I execute
ceedling utils:gcov
The paths are as follows:
Software project source files:
SWCB5\CB5SW2803\bsp\src\adc
Ceedling Project files
SWCB5\unit_test_cb5IE\build\artifacts\gcov
I tried manually creating the gcov files in the gcov folder and then run
ceedling utils:gcov
but still the report remains blank
Following is the coverage in project.yml file.
:gcov:
:html_report_type: detailed
:html_report: true
:gcovr:
:html_medium_threshold: 75
:html_high_threshold: 90
:use_legacy_output: false
:additional_options:
- --txt-metric=branch
- --sort-key=uncovered-percent
Can anyone suggest the right way to resolve the paths to view the coverage report?
I do not want to move the source files every time to the src folder. Since we would be testing the code which can be present in different folders.
Below is the Ceedling version I have:
Ceedling:: 0.31.1
Unity:: 2.5.4
CMock:: 2.5.4
CException:: 1.3.4