-
Notifications
You must be signed in to change notification settings - Fork 319
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
androidx.test:orchestrator in test-only module ('com.android.test') #767
Comments
Can you post a sample project that illustrates this problem? Either as a zip or in github. |
@brettchabot Of course. Provided here https://github.com/asavill/test-orchestrator-in-test-only-module-issue It's the same test class in both the app module and the test-only module. If you run them and compare you will see the orchestrator is not utilised in the test-only module. |
Any update on this? |
@asavill did you find any solution or workaround for this? |
@bilgehankalkan I did not, unfortunately. I retry it every time we update the android gradle plugin but it's still not supported. @brettchabot Do you have any idea if this is known about or on a backlog somewhere? I understand it's probably not highest priority. |
@yuuki3655 any ideas? |
@asavill Did you run it from Android Studio or the command line? I downloaded your example project and ran the command,
|
@yuuki3655 I also have success execution with orchestrator while running with ✋: Passing argument |
@bilgehankalkan Yes, we are aware of the feature parity issue between Android Studio and Android Gradle plugin. As an interim solution, please use those instrumentation runner arguments. We are actively working on unifying the test runners in Android Studio and Android Gradle plugin and you can opt-in to it in the latest canary build. Here's the related talk at this year's Google IO: https://www.youtube.com/watch?v=juEkViDyzF8 |
Hi @yuuki3655 - could we have an update on this please? What are your expectations around the current level of support in Bumblebee? I'm still seeing no orchestrator used, and this error message in the run log:
but it is possible this is us lagging behind in Gradle version etc. |
@robpridham-bbc Since Android Studio BumbleBee, it delegates test execution to AGP. So, when you specify orchestrator in your Gradle build file, AS should also use it as long as your project's AGP version supports it. What AGP version is your project using? Could you try upgrading AGP version to the latest, |
Hi all, I am facing an issue while running instrumentation est cases in android. Any help appreciated "Run Android instrumented tests using Gradle" option was ignored because this module type is not supported yet. $ adb shell am instrument -w -m -e package com.contentstack.sdk -e debug false com.example.sdk.test/androidx.test.runner.AndroidJUnitRunner Thanks in advance |
Does your project has a dynamic module? If so, we're still working on it to support it. Test-only module is supported already. What version of Android Gradle plugin does your project use?
This sounds like a test process has crashed for some reasons. You might get more information by |
Hello :D is there any progress on this issue? |
Hi, this should be fully supported including dynamic module in the latest version of Android Studio (Giraffe). Do you still see the issue? |
Description
We are struggling to use the test orchestrator in our new test only module. We had it working fine when the tests were located in the app module.
One observation is that when working within a test-only module, dependencies are brought in slightly differently
Test only
Normal app module
As you can see, the androidTest element is omitted. Test orchestrator is brought in using androidTestUtil.. is there an equivalent syntax for test-only modules? Is it possible that a test-only module ignores the androidTestUtil option?
androidTestUtil 'androidx.test:orchestrator:1.3.0'
Steps to Reproduce
Create a test-only module using 'com.android.test' and attempt to use test orchestrator.
Expected Results
Test orchestrator works as normal
Actual Results
Test orchestrator isn't leveraged.
AndroidX Test and Android OS Versions
'androidx.test:orchestrator:1.3.0' - Android 10/11/9
Link to a public git repo demonstrating the problem:
https://github.com/asavill/test-orchestrator-in-test-only-module-issue
The text was updated successfully, but these errors were encountered: