Repository navigation
coverage: score_coverage 0.4.2, baseline notes of untested files unoptimised - #804
Conversation
|
Result of the Linux coverage job (run 38887734269): |
|
@dcalavrezo-qorix thanks for investigating the issue. I checked the resulting coverage report from the pipeline and the main.cpp file is removed from unmapped_files.txt and now part of the coverage report. |
0.4.2 lists the own sources of a cc_binary (launch_manager's main.cpp) at 0 % instead of under no-data in unmapped_files.txt, and renders baseline-only files in their own HTML run so an executable's main cannot pick up a test binary's counts (coverage_tool#40). The gcov config gets --host_cxxopt=-O0: the scope's baseline .gcno notes of untested files are built in the exec configuration with the host options; without it GCC optimises them and their line tables differ from the -O0 test builds (user manual step 4b). Signed-off-by: Dan Calavrezo <195309321+dcalavrezo-qorix@users.noreply.github.com>
74e415c to
fe7d23a
Compare
|
Documentation preview for this pull request is available at: |

Bumps
score_coverageto 0.4.2 (release notes), the release that fixes eclipse-score/coverage_tool#40: the own sources of acc_binary, herelaunch_manager'smain.cpp, are listed in the report at 0 % instead of underno-datainunmapped_files.txt, and baseline-only files are rendered in their own HTML run so an executable'smaincannot pick up a test binary's counts. The temporarygit_overrideused for validation is gone.Also adds
coverage:gcov --host_cxxopt=-O0: the scope's baseline.gcnonotes of untested files are built in the exec configuration with the host options; without it GCC optimises them and their line tables differ from the-O0test builds (user manual step 4b).Validation with the override, Linux coverage run 38912573302:
main.cppat 0 of 3 lines in the HTML index and the LCOV, totals include it, effective line coverage 81.88 %. Expect the effective figure to be slightly below the previous report, since the untested binary source now counts.