Skip to content
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

Change score calculation from passed/total #89

Open
Felixoid opened this issue Aug 27, 2021 · 0 comments · May be fixed by #90
Open

Change score calculation from passed/total #89

Felixoid opened this issue Aug 27, 2021 · 0 comments · May be fixed by #90

Comments

@Felixoid
Copy link

Felixoid commented Aug 27, 2021

Hello. I've found it a little bit inconvenient to see that skipped and duplicated mutations decrease the scores. https://github.com/zimmski/go-mutesting/blob/master/cmd/go-mutesting/main.go#L154

IMHO, the score should be calculated as in 7ccb9f3, so success / (success + failed). Skipped and duplicated should be still in totals, but not affect the scores.

In other words, I strictly disagree with the following calculation:

The mutation score is 0.586957 (27 passed, 0 failed, 7 duplicated, 19 skipped, total is 46)
The mutation score is 0.466667 (7 passed, 0 failed, 2 duplicated, 8 skipped, total is 15)
@fbustamant3 fbustamant3 linked a pull request Sep 10, 2021 that will close this issue
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 a pull request may close this issue.

1 participant