-
Notifications
You must be signed in to change notification settings - Fork 285
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
Conversation
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.
The default for the argument shall be handled by the command line parser.
Please also add the issue to the changlog.rst.
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.
@latk Shall we merge this and you extend the documentation or shall we first merge the documentation and update it with this PR?
Please can you fix the formatting errors? |
On it (--nox lint not catching it locally, odd). |
There was a error in the noxfile. Please Reba's to current master, there it's fixed. |
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.
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.
Ah, I see. I don't have them on this machine, so I kindly request them to be created elsewhere :) |
On Dienstag, 25. Jänner 2022 20:09:04 CET Michael Förderer wrote:
@kollix At the moment I don't want to support this because we need three options to support this.
ok, if not this moment, is there a better moment then ?
The current used postfixes are also used by gcov and lcov.
which does not exclude my feature wish and sadly does not help my use case.
From which tool are your markers?
as said, MS coverage (our code is cross platform and up till now we do coverage only
on windows, but the tool is slow, so I'm looking for a better alternative but want
to avoid the need to change thousands of existing markers)
…--
Best regards/Schöne Grüße
Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?
() ascii ribbon campaign - against html e-mail
/\ - against proprietary attachments
Frühstück, Geschenkideen, Accessoires, Kulinarisches: www.lillehus.at
|
Do you have a link to that? I find no documentation with this markers. The exclusion of a single line is possible with |
On Mittwoch, 26. Jänner 2022 08:27:52 CET Michael Förderer wrote:
> 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.
Let's forget about my wish. I now learned that the mentioned COVINFO markers are post-processed
by an internal tool, not by MS coverage itself, so we can adjust that tool on our own if needed.
Thanks.
…--
Best regards/Schöne Grüße
Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?
() ascii ribbon campaign - against html e-mail
/\ - against proprietary attachments
Frühstück, Geschenkideen, Accessoires, Kulinarisches: www.lillehus.at
|
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, 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 Report
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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
Co-authored-by: Michael Förderer <michael.foerderer@gmx.de>
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