Stryker: 100% transpile errors = 0% coverage

Created on 12 Oct 2017  路  10Comments  路  Source: stryker-mutator/stryker

screen shot 2017-10-12 at 13 57 31 1

When the only possible mutation results in a transpile errors then there are no tests run. To my understanding these are not taken into account when calculating the coverage so the resulting coverage is 0%. I expect it to be 100%.

馃悰 Bug

Most helpful comment

I would expect 馃挴 馃

All 10 comments

@riezebosch thabks for trying out the new typescript functionality. Indeed it is not used in calculation. However, if there are zero valid mutants, the score is calculated as 0.

What would you expect as a score in this case?

I would expect 馃挴 馃

Not something like n/a?

Or even more precise: no mutants. This also applies to the overview page.

But there are mutants. Just not valid ones. How about no valid mutants?

Let's go for 100. This both pragmatic and mathematically sound.

screenshot_20180518_115313

I am no longer able to reproduce the issue, test repo at https://github.com/Archcry/stryker-calculate-score-example

Thats because you have 1 mutant. It has state TranspileError. Thus 100%

Thats because you have 1 mutant. It has state TranspileError. Thus 100%

Yes, but it's the same as the example given in the first post.

Hmm true. I think we might have implemented it without closing this issue. I'll close it for now, feel free to reopen or comment here if it is not fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nosideeffects picture nosideeffects  路  32Comments

simondel picture simondel  路  25Comments

davesag picture davesag  路  17Comments

Lakitna picture Lakitna  路  97Comments

jeznag picture jeznag  路  17Comments