-
Notifications
You must be signed in to change notification settings - Fork 263
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
Aggregation of coverage measurements for code with ifdef #338
Comments
I saw your StackOverflow question, and it motivated me to finally release
the necessary functionality (it had already been implemented for a while).
Please see the documentation on combining/merging coverage data:
https://gcovr.com/en/stable/guide.html#combining-tracefiles
In a nutshell, you create a JSON report with the coverage of each
configuration,
and can then use the -a/--add-tracefile option to merge the JSON files, and
create your desired report format.
This requires that you update to gcovr 4.2.
…On Wed, 6 Nov 2019 at 08:07, Peter Toft ***@***.***> wrote:
I have tried to raise a question on how to aggregate coverage measures for
code with ifdef
in
https://stackoverflow.com/questions/58632496/how-to-get-100-coverage-with-gcovr-with-ifdef-code
Basically - how can I summarize or aggregate test results from my code
when tested with different
compile options. I cannot make this work.
I guess that I probably should have asked here directly.
If answered I will cross-answer the stackoverflow my self.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#338?email_source=notifications&email_token=AANTJD76RJAJ7REDGJHM5WDQSJULFA5CNFSM4JJQUET2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HXELTEQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANTJD6CFXBSTLVXDXP6UQTQSJULFANCNFSM4JJQUETQ>
.
|
@latk This sounds brilliant. Will test as the first thing tomorrow morning. Thanx a mil. More to follow :) |
@latk This is a PURE homerun - thanx a mil!! For sake of completeness - I take it that this cannot be done prior to gcovr 4.2? (and we can close this now) |
Thank you. Yes, the necessary features (JSON output, merging) were first released with gcovr 4.2. |
@latk One suggestion for further updates; that With run-1,json and run-2.json as output (cf. https://gcovr.com/en/stable/guide.html#combining-tracefiles) it seems that with gcovr 4.2 I do have to use two --add-tracefile options. |
@latk as promised > I have updated https://stackoverflow.com/questions/58632496/ and credited you. THANX!!! |
Add feature suggested in issue gcovr#338
Add feature suggested in issue gcovr#338
Add feature suggested in issue gcovr#338
Add feature suggested in issue gcovr#338
Add feature suggested in issue gcovr#338
Add feature suggested in issue gcovr#338
Add feature suggested in issue gcovr#338
Add feature suggested in issue gcovr#338
I have tried to raise a question on how to aggregate coverage measures for code with ifdef
in https://stackoverflow.com/questions/58632496/how-to-get-100-coverage-with-gcovr-with-ifdef-code
Basically - how can I summarize or aggregate test results from my code when tested with different
compile options. I cannot make this work.
I guess that I probably should have asked here directly.
If answered I will cross-answer the stackoverflow my self.
The text was updated successfully, but these errors were encountered: