question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pitest generates unhelpful mutations when using Kotlin's coroutines

See original GitHub issue

This 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Michael-Nolancommented, Jan 19, 2020

I’ve been toying with the idea of some sort support subscription that could fund development

I’d be interested to see that. Open source projects really do need a source of funding. The work you do has value.

0reactions
hcolescommented, Mar 2, 2022

The Arcmutate kotlin plugin now provides support for coroutines

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found