Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to receive failed tests report from remote machine when using Kotlin Coroutines runTest #124

Open
yamal-alm opened this issue Sep 27, 2022 · 1 comment

Comments

@yamal-alm
Copy link

yamal-alm commented Sep 27, 2022

Hi, I'm experiencing a weird behavior when executing unit tests from Android Studio. I'm unable to receive the failed tests report from the remote machine and the IDE execution never ends. The execution seems to have finished but the IDE is not aware of it as it can be seen on this screenshot:

Captura de pantalla 2022-09-27 a las 11 53 17

After debugging, I noticed that this is only happening when using runTest method from kotlin-coroutines-test package on the test that is failing and from the IDE (it works ok from command line). For example:

@Test
fun `this test should fail`() = runTest {
    assertTrue(false)
}

Here you have an example repository where this bug can be reproduced after enabling remote compilation with Mirakle plugin: test-remote-compilation

Other information:

  • Android Studio version: Dolphin 2021.3.1
  • Mirakle version: 1.6.0
@skrugly
Copy link
Owner

skrugly commented Dec 5, 2022

Hey, it is a weird thing, I can't find a way to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants