pitest generates unhelpful mutations when using Kotlin's coroutines
See original GitHub issueThis Kotlin code sample that uses coroutines:
private fun test() {
GlobalScope.launch {
}
}
Will create bunch of replaced equality check with false
mutations, even though there are no equality checks in actual kotlin code.
This was reproduced with Android fork of the pitest gradle plugin v0.1.9, which uses 1.4.0
pitest version and ALL
operators enabled.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
♂️ Mutation Testing with Pitest and Kotlin
Mutation Testing is a way to evaluate the quality of our tests by modifying ("mutating") our code and counting how many of these ......
Read more >weird behavior with PiTest and Kotlin 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?...
Read more >Mutation tests on Android. Are they worth it? | by Phellipe Silva
Pitest is a state of the art tool for mutation testing with Java and ... For the case of Coroutines, it is clear...
Read more >Mutation testing: Too good to be true? (Devoxx) - SlideShare
Mutation testing is an approach to fight poorly written unit tests ... Pitest for a while now, and we recommend its use in...
Read more >A Gentle Introduction to Mutation Testing with PITest and Kotlin
Who tests the tests? Let's see how code coverage doesn't tell the whole story and talk about the other half of the coin...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’d be interested to see that. Open source projects really do need a source of funding. The work you do has value.
The Arcmutate kotlin plugin now provides support for coroutines