weird behavior with PiTest and Kotlin Coroutines

64 views
Skip to first unread message

Guillaume de Toulouse

unread,
Jul 26, 2021, 6:04:55 AM7/26/21
to PIT Users
Hello

when I add this line to the pom of my project
<avoidCallsTo>kotlinx.coroutines</avoidCallsTo>

the result of the mutation coverage is:
>> Line Coverage: 94/96 (98%) [2021-07-26T09:27:45.248Z]
>> Generated 19 mutations Killed 17 (89%) [2021-07-26T09:27:45.248Z] 
>> Mutations with no coverage 0. Test strength 89%
>> Ran 11536 tests (607.16 tests per mutation)

when I don not have this line , the result is less mutation (!!!)
>> Line Coverage: 94/96 (98%) [2021-07-26T09:44:20.947Z] 
>> Generated 14 mutations Killed 14 (100%) [2021-07-26T09:44:20.947Z] 
>> Mutations with no coverage 0. Test strength 100% [2021-07-26T09:44:20.947Z] 
>> Ran 952 tests (68 tests per mutation)

I'd excepted less tests while avoiding calls to coroutines  ... 
the test framework I use is Kotest with FunSpec and BehaviorSpec  (which are run under Coroutines, as far as I've undestrood)

Any clue?

Best regards

Henry Coles

unread,
Jul 26, 2021, 10:07:01 AM7/26/21
to pitu...@googlegroups.com
No clue at all.

Can you upload a minimal project that reproduces the issue?

Thanks

Henry

--
You received this message because you are subscribed to the Google Groups "PIT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pitusers+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pitusers/3d684494-1c00-4d6f-9779-a9b681ad658an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages