Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there a way to get functions coverage column like in Lcov? #901

Open
DamianoBaroneSky opened this issue Jun 25, 2024 · 2 comments
Open

Comments

@DamianoBaroneSky
Copy link

Hi,
Gcov works well, but when I generate the html I can see line coverage and branch coverage. However, I would like to have Functions column like in LCOV. is there a way to change the yml to create function column? basically show how many function are hit in the test?

@mkarlesky
Copy link
Member

Hi, @DamianoBaroneSky. There certainly should be this option. I see in the history of gcovr development that users asked for something like this years ago referencing its availability in Lcov. I also see that it was eventually implemented. However, so far, I cannot find the necessary setting. Once we do figure this out we'll probably get it added as a default to the GCov plugin configuration. I think it's quite a safe bet that Ceedling users would generally want this in an HTML report produced by a coverage plugin.

By all means, please feel free to dig through the gcovr documentation. If you find the option — I'm 97% sure it's there — please post it here. We can provide guidance on how to add it to your configuration (if possible) and get it incorporated into the plugin.

@swaldhoer
Copy link

I am using gcovr 7.2 with a Ceedling prerelease from a few days ago and there is

  • line
  • branch
  • function
    coverage shown.

With respect to ceedling config (project.yml) it was a zero configuration thing and just worked out of the box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants