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.

"Test events were not received" in Android Studio Artic Fox

See original GitHub issue

After migrating to Android Studio Artic Fox, when running unit tests from the IDE, it says “Test events were not received”

image

Here is the output:

Executing tasks: [:app:cleanTestDebugUnitTest, :app:testDebugUnitTest] in project /Users/gmerino/Workspace/personal/TestsInRemote


> Configure project :
Here's Mirakle 1.4.3. All tasks will be executed on arc-prod-1.tuenti.io.
> Task :uploadToRemote
> Task :executeOnRemote
> Task :app:cleanTestDebugUnitTest
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:compileDebugAidl NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig UP-TO-DATE
> Task :app:checkDebugAarMetadata UP-TO-DATE
> Task :app:generateDebugResValues UP-TO-DATE
> Task :app:generateDebugResources UP-TO-DATE
> Task :app:mergeDebugResources UP-TO-DATE
> Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
> Task :app:extractDeepLinksDebug UP-TO-DATE
> Task :app:processDebugMainManifest UP-TO-DATE
> Task :app:processDebugManifest UP-TO-DATE
> Task :app:processDebugManifestForPackage UP-TO-DATE
> Task :app:processDebugResources UP-TO-DATE
> Task :app:compileDebugKotlin
> Task :app:javaPreCompileDebug UP-TO-DATE
> Task :app:compileDebugJavaWithJavac UP-TO-DATE
> Task :app:bundleDebugClasses UP-TO-DATE
> Task :app:compileDebugUnitTestKotlin
> Task :app:preDebugUnitTestBuild UP-TO-DATE
> Task :app:javaPreCompileDebugUnitTest UP-TO-DATE
> Task :app:compileDebugUnitTestJavaWithJavac NO-SOURCE
> Task :app:processDebugJavaRes NO-SOURCE
> Task :app:processDebugUnitTestJavaRes NO-SOURCE
> Task :app:testDebugUnitTest
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 2s
18 actionable tasks: 4 executed, 14 up-to-date
> Task :downloadInParallel
> Task :downloadFromRemote
> Task :mirakle
Total time : 5.592 secs
Task uploadToRemote took : 0.316 secs
Task executeOnRemote took : 3.027 secs
Task downloadFromRemote took : 0.393 secs
5 actionable tasks: 5 executed
10:06:51: Tasks execution finished ':app:cleanTestDebugUnitTest :app:testDebugUnitTest --tests "com.gmerino.testsinremote.ExampleUnitTest"'.

I’ve tried with different versions of Gradle and also use Junit4 & Junit5, but I wasn’t able to find a workaround

Steps to reproduce Create an empty project in Android Studio, it will create a class called ExampleUnitTest. Try executing that test when mirakle is configured.

IntelliJ I’ve also reproduced it in IntelliJ IDEA 2021.2.1 with the same STRs

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:8
  • Comments:32 (10 by maintainers)

github_iconTop GitHub Comments

5reactions
JSpinercommented, Jan 5, 2022

Same for me. Is there any updates?

3reactions
gmerinojimenezcommented, Jul 21, 2022

Hi,

Thank you very much, @Adambl4 and @JSpiner for the work.

I’ve tested 1.5.3-RC-4 on Android Studio Chipmunk and the simple project and it’s working for me: image

😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unit tests not working on Android Studio Arctic Fox
Getting the same issue. Answers below does not resolve the Test events were not received on my end. – Zerosero. Aug 20, 2021...
Read more >
Upgrade to Android Studio Arctic Fox error: Test events were ...
Upgrade to Android Studio Arctic Fox error: Test events were not received. Recently, a new version of Android Studio was released named Arctic...
Read more >
"Test events were not received" when trying to run ... - YouTrack
I'm running on Mac. I can recreate it in using the Rust project. Simply clone the source, import project and double click the...
Read more >
JUnit5 Unit Testing, Test events were not received.
Test events were not received. After some digging I've found out more detailed errors: FAILURE: Build failed with an exception.
Read more >
Known issues with Android Studio and Android Gradle Plugin
Running JUnit tests may compile the code twice · To fix the issue for the current project, click Run > Edit Configurations and...
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