-
Notifications
You must be signed in to change notification settings - Fork 306
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
Can't run any test after Bump androidx.test:runner from 1.4.0 to 1.5.1. #1585
Comments
Does logcat show an error ? I'm trying to repro based on your instructions but the gradle command just seems to hang |
Yup, that's what I saw too.
@brettchabot Thank you for the hint. I've found the following in logcat
It looks like a dependency conflict. The app uses Unfortunately, adding |
This comment was marked as off-topic.
This comment was marked as off-topic.
Agree. But I can't find settings to set up |
This comment was marked as off-topic.
This comment was marked as off-topic.
@brettchabot given the state of affairs, how about an AndroidX Test BOM? https://developer.android.com/jetpack/compose/setup#using-the-bom |
It is true that the best tested path is for all androidx.test dependencies to be the latest version, but you absolutely should not have to do this. A bunch of API enforcement infrastructure was put in place in this release to detect versioning incompatibilities, and while there is more work to do on this front, I don't agree that dependabot upgrading versions in isolation is the root cause of the issue. The root cause is adding test dependencies to 'implementation' and gradle's inability to deal properly with versioning issues resulting from that. I'd suggest either restructuring the code to avoid androidx.test dependencies in 'implementation', or configure gradle to just build a single apk for tests, just like is done for library projects. Again IMO just building all dependencies into a single apk should be the default behavior. @yuuki3655 do you remember the gradle option to do this? |
Description
Hello. After updating androidx.test:runner from 1.4.0 to 1.5.1. I can't run any test - not via Gradle not via Android Studio. It seems like runner can't find tests. Please look at the picture
Steps to Reproduce
dependabot/gradle/androidx.test-runner-1.5.1
branch./gradlew :FlowCrypt:connectedDevTestDebugAndroidTest
Expected Results
Gradle should run tests
Actual Results
I see starting 0 tests on emulator
AndroidX Test and Android OS Versions
Android 12L (API level 32)
Link to a public git repo demonstrating the problem:
More details can be found here https://github.com/FlowCrypt/flowcrypt-android/pull/2064/files
The text was updated successfully, but these errors were encountered: