go-mutesting
go-mutesting copied to clipboard
Change score calculation from passed/total
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 https://github.com/zimmski/go-mutesting/commit/7ccb9f338c866c1eb4920f512f5d8ae05af39382, 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)