8000 Add option to configure exclude marker by zphensley42 · Pull Request #561 · gcovr/gcovr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add option to configure exclude marker #561

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

Merged
merged 12 commits into from
Mar 19, 2022
Merged

Conversation

zphensley42
Copy link
Contributor
@zphensley42 zphensley42 commented Jan 24, 2022

As discussed in: #557

This PR adds the ability to provide a prefix to existing EXCL_LINE/START/STOP markers to allow for projects to use differing markers as necessary among builds that do not conditionally exclude executable code. The existing pattern matching option does not allow for START/STOP markers to be modified (i.e. only provides for line marking) and thus this extends that with a new option.

Closes #557

@Spacetown Spacetown changed the title Issue 557 Add option to configure exclude marker Jan 24, 2022
@Spacetown Spacetown added this to the 5.1 milestone Jan 24, 2022
Copy link
Member
@Spacetown Spacetown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default for the argument shall be handled by the command line parser.
Please also add the issue to the changlog.rst.

Copy link
Member
@Spacetown Spacetown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGFM.
@latk Shall we merge this and you extend the documentation or shall we first merge the documentation and update it with this PR?

@Spacetown
Copy link
Member

Please can you fix the formatting errors?

@zphensley42
Copy link
Contributor Author

On it (--nox lint not catching it locally, odd).

@Spacetown
Copy link
Member

There was a error in the noxfile. Please Reba's to current master, there it's fixed.

Copy link
Member
@Spacetown Spacetown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reference data is only present for gcc-5. Do you have the the other compiler versions or docker installed? If not, I can create the other reference data for you.

@zphensley42
Copy link
Contributor Author

Ah, I see. I don't have them on this machine, so I kindly request them to be created elsewhere :)

@kollix
Copy link
kollix commented Jan 26, 2022 via email

@Spacetown
Copy link
Member

as said, MS coverage

Do you have a link to that? I find no documentation with this markers.

The exclusion of a single line is possible with --exclude-line-pattern. I've a problem with adding several options to support migration from another tool. One solution can be to use the JSON coverage files and filter them by scanning the source files. The filtered files can than be used to generate a report.

@kollix
Copy link
kollix commented Jan 26, 2022 via email

8000
Copy link
Member
@Spacetown Spacetown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGFM, I'll update the reference later.
@latk Do you want to finish the documentation change first or will you update your branch with this change?

@codecov
Copy link
codecov bot commented Feb 22, 2022

Codecov Report

Merging #561 (31ef847) into master (7576544) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #561   +/-   ##
=======================================
  Coverage   95.68%   95.68%           
=======================================
  Files          23       23           
  Lines        3293     3294    +1     
  Branches      609      609           
=======================================
+ Hits         3151     3152    +1     
  Misses         69       69           
  Partials       73       73           
Flag Coverage Δ
ubuntu-18.04 94.74% <100.00%> (+<0.01%) ⬆️
windows-2019 95.33% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
gcovr/configuration.py 99.30% <ø> (ø)
gcovr/gcov.py 82.12% <ø> (ø)
gcovr/tests/test_gcov_parser.py 100.00% <ø> (ø)
gcovr/gcov_parser.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7576544...31ef847. Read the comment docs.

@Spacetown Spacetown mentioned this pull request Mar 14, 2022
Copy link
Member
@Spacetown Spacetown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGFM

@Spacetown Spacetown merged commit f05bc73 into gcovr:master Mar 19, 2022
D-Walther pushed a commit to D-Walther/gcovr that referenced this pull request Jun 16, 2025
Co-authored-by: Michael Förderer <michael.foerderer@gmx.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support overrides to the default EXCL patterns (LINE/START/STOP) to allow builds to exclude different sets of code as needed
3 participants
0