Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Report Mutation Percentage Coverage Measure #5

Open
j-truax opened this issue Sep 1, 2017 · 3 comments
Open

Report Mutation Percentage Coverage Measure #5

j-truax opened this issue Sep 1, 2017 · 3 comments

Comments

@j-truax
Copy link

j-truax commented Sep 1, 2017

Was able to verify that the plugin captured survived & not covered mutants in our Sonar DB and were viewable on the project dashboard.

Currently the above metrics are reported as issues. However, it would be nice if this plugin also stored a Coverage Measure that captured Mutation Coverage % similar to Line & Condition.

@nicojs @simondel - Any thoughts on whether this could be supported?

@nicojs
Copy link
Member

nicojs commented Oct 10, 2017

Great to hear that the plugin is working for you! I agree that we need the metric. Let's call it "Mutation Score" as that is what we've been calling it so far.

This is rather easily implemented. We now report the mutation score in the onScoreCalculated event here: https://github.com/stryker-mutator/stryker/blob/master/packages/stryker-api/src/report/Reporter.ts#L45. It is written to disk by the event-recorder reporter so that part is already done. All that's left is to read in that file as well and report the metrics you want reporting.

@j-truax You're welcome to help. Do you want to implement this?

@j-truax
Copy link
Author

j-truax commented Oct 13, 2017

@nicojs - I wouldn't mind contributing but my bandwidth is a limited right as I am working full time and getting my MBA. My work requires me to get approval prior to contributing to open source projects. At the very least I will try and set aside some time to review the source and see what enhancement is needed for this.

@jmpresso
Copy link

jmpresso commented Oct 21, 2017

I chatted with @j-truax about this. I'll give it a shot- may take me a bit.

Edit- I didn't have much time and never did this. IIRC, once I did start to pick it up, I found report format changes had broken this plugin entirely, which seemed to be a larger fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants