-
Notifications
You must be signed in to change notification settings - Fork 38
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
Adding VectorCAST coverage #105
base: main
Are you sure you want to change the base?
Conversation
Not sure how to fix this the missing comma affer "id" : "error-prone"
|
@uhafner - do you know how to clear this error? I don't know what I've done in the branch to create it. I'd like to move on to the task of fixing the coverage-plugin changes that are pending this artifact |
I think I fixed that in main. |
It seems that you did commit your changes in main. This is not ideal. You should always create changes in a separate branch. Then it is much easier to update from the upstream repository. |
I thought you requested a fork and a PR. I can redo if you’d like.
…________________________________
From: Ullrich Hafner ***@***.***>
Sent: Thursday, May 16, 2024 12:40:02 PM
To: jenkinsci/coverage-model ***@***.***>
Cc: Schneider, Tim ***@***.***>; Author ***@***.***>
Subject: Re: [jenkinsci/coverage-model] Adding VectorCAST coverage (PR #105)
You don't often get email from ***@***.*** Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
It seems that you did commit your changes in main. This is not ideal. You should always create changes in a separate branch. Then it is much easier to update from the upstream repository.
—
Reply to this email directly, view it on GitHub<#105 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AENYLQ4P7CDAVYVXFBEIID3ZCTOOFAVCNFSM6AAAAABHL3FGSCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJVG4ZTEMBQGY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
No, a fork is correct. You just never use the main branch even in your fork. Otherwise you cannot keep your forked main branch in sync with the main branch of the upstream, see https://gist.github.com/Chaser324/ce0505fbed06b947d962 You see the effect of not creating a branch now in the diff: https://github.com/jenkinsci/coverage-model/pull/105/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 Now there are many unrelated changes visible... |
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.
Thanks for this pull request, everything is well written and tested!
The only bigger thing is the additional FUNCTION metric. I would be very happy if we can achieve the same results with the existing METHOD metric.
src/main/java/edu/hm/hafner/coverage/CoverageMetricsValues.java
Outdated
Show resolved
Hide resolved
src/main/java/edu/hm/hafner/coverage/CoverageMetricsValues.java
Outdated
Show resolved
Hide resolved
src/main/java/edu/hm/hafner/coverage/CoverageMetricsValues.java
Outdated
Show resolved
Hide resolved
src/main/java/edu/hm/hafner/coverage/parser/VectorCASTParser.java
Outdated
Show resolved
Hide resolved
src/test/java/edu/hm/hafner/coverage/parser/VectorCASTParserTest.java
Outdated
Show resolved
Hide resolved
src/test/java/edu/hm/hafner/coverage/parser/VectorCASTParserTest.java
Outdated
Show resolved
Hide resolved
src/test/java/edu/hm/hafner/coverage/parser/VectorCASTParserTest.java
Outdated
Show resolved
Hide resolved
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.
Thanks for fixing all those tasks! The only thing I would like to change is the duplicate enum FUNCTION vs. METHOD. Do you think that we can eliminate it? I think I almost got rid of it a couple of weeks ago but then dropped my changes... If you need help, I can push a draft of these changes again...
src/main/java/edu/hm/hafner/coverage/parser/VectorCastParser.java
Outdated
Show resolved
Hide resolved
Please push any suggested changes for this. I cannot figure it out. I think what's tripping me up is Method depends on Children and Function is a Value (2/4 50%)
|
Yes, this exactly was the problem. I fixed that code now. When a local value is present, then we do not need to derive the "container" metrics from the line coverage. I pushed my changes here: d9a047c If you prefer, I can push the changes back to your repo? |
Adding MC/DC, Function, and Function Call coverage. Results being shown in the coverage report and associated graphs. Method coverage not working for some reason.
Testing done
Tested with an expanded Cobertura xml file. Run through multiple configurations on Jenkins server with varying coverage configurations
Submitter checklist