Status Update
Comments
ch...@google.com <ch...@google.com>
ar...@google.com <ar...@google.com> #2
Hi Karima, can you help take a look please? Thanks!
ka...@google.com <ka...@google.com> #3
I am not able to reproduce this on AS with a basic project.
What type of project you are using ? is your /test/
folder marked as test directory ? Can you please attach an example project or the basic structure to help reproduce ?
thanks.
so...@google.com <so...@google.com> #4
I can reproduce it following the given steps.
ka...@google.com <ka...@google.com> #5
I was able to reproduce this issue once on Friday but I can no longer reproduce it (Synced sources this morning).
Steps to reproduce:
Create a project with no Activity, and notice that test
and androidTest
are not highlighted as test Source Root
and when running tests using right click on the tests packages, then nothing happen (for both unit tests and android test).
I am trying to locate the change that caused for test sources to be ignored, but still couldn't find any.
Does anyone one if there was a recent change that could have affected the test sources ? This is affecting released AS versions as well !
ka...@google.com <ka...@google.com> #6
This bug is not reproducible. I tested it on different versions of AS ( AS ArcticFox RC1, AS BumbleBee Canary 8, and canary 10), and I didn't manage to reproduce using any of them.
Please feel free to re-open this bug if it still happen. Please consider attaching some instructions to reproduce or a sample project.
ph...@sprylab.com <ph...@sprylab.com> #7
so...@google.com <so...@google.com> #8
I can still reproduuce it in the build from the HEAD. I'll take a look at what is essentail to reproduce it.
so...@google.com <so...@google.com> #9
I believe the root cause of the problem is somewhere around (see the image). I don't know how we populate TEST nodes for unit tests is Android modules and whether it is the responsibility of the Android plugin or Gradle plugin.
ka...@google.com <ka...@google.com> #10
Thanks for expressing your concern and how affected you are by this.
Since this is still happening in HEAD, I'll try figure out how to reproduce it again and debug it.
ab...@gmail.com <ab...@gmail.com> #11
Any news on this ?
ka...@google.com <ka...@google.com> #12
Please bear with us ! we are working on fixing this issue, but it requires some fixes for Intellij + Android Studio.
In the meantime : if you switch to Android view, then right-clicking from locations to run tests would execute tests.
Thanks.
ka...@google.com <ka...@google.com> #13
Thank you for your patience while we were looking into this issue.
This is now fixed, and will be available in Android Studio BumbleBee Beta 5, as well as Chipmunk Canary 6.
sa...@google.com <sa...@google.com> #14
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Chipmunk Canary 5 (2021.2.1.5)
- Android Gradle Plugin 7.2.0-alpha05
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
sa...@google.com <sa...@google.com> #15
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Bumblebee Beta 4 (2021.1.1.17)
- Android Gradle Plugin 7.1.0-beta04
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
Build: AI-203.7717.56.2031.7557721, 202107162235,
AI-203.7717.56.2031.7557721, JRE 11.0.10+0-b96-7281165x64 JetBrains s.r.o., OS Mac OS X(x86_64) v11.5, screens 3584.0x2240.0; Retina
AS: Arctic Fox | 2020.3.1 RC 1; Kotlin plugin: 203-1.5.21-release-316-AS7717.8; Android Gradle Plugin: 4.2.1; Gradle: 7.0.2; Gradle JDK: version 15.0.2; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)Source: user_sentiment_feedback
Hi, when running test from command line still works fine, it does not when trying to launch them directly from AS:
Steps:
test/
Expected behavior: all unit tests from the project should have run.