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
When invoked with --calls, show call coverage #666
Conversation
Show them in summary writer. Total number of function calls and number of calls executed. HTML view: Show number of calls for each source file and the number of them executed. HTML view: In the source view, show the number of calls and executed calls for each line in their own column.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor changes needed. Please add also test data for this as described in the documentation.
Added a test case at tests/calls with a reference output for gcc 11 at 3640cd5 |
Reference is needed for all compilers. After the pipeline there will be an artifact for every compiler. If you have Docker installed you can create also the reference data locally. |
Please update the changelog and the authors. |
Whole HTML reference needs to be updated. I'm currently not able to do this. Do you have Docker installed on your computer? |
I do, but when I run python3 -m nox --session 'docker_qa_compiler(all)' -- --update_reference I get Somehow it is failing before (?) getting the new references? |
The error messages should be above the summary of nox If you run |
It looks like a problem in nox/docker in my setup: I've tried in a Fedora 36 vm installing everything from scratch (python-nox, docker) and it also happens. What is the recommended environment/distribution to run docker to retrieve the reference files? |
I've only used it on MacOs. Can you try to modify the |
Copied the changed reference files for all tests from a succesful run in Ubuntu 18.04 vm |
Codecov ReportBase: 95.24% // Head: 95.28% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #666 +/- ##
==========================================
+ Coverage 95.24% 95.28% +0.03%
==========================================
Files 24 24
Lines 3409 3479 +70
Branches 642 657 +15
==========================================
+ Hits 3247 3315 +68
- Misses 91 92 +1
- Partials 71 72 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Shall I update the reference for you? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGFM.
Only some minor annotations. If everything is done the test data needs to be updated.
@latk I leave it up to you which PR is merged first, this one or your refactoring of the parser..
Updated json version to 0.4 as a new key was added (gcovr/calls)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGFM. Thank you for working on this.
Thank you for the great support and codebase! |
Show them in summary writer. Total number of function calls and number
of calls executed.
HTML view: Show number of calls for each source file and the number of
them executed.
HTML view: In the source view, show the number of calls and executed calls for each
line in their own column.