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
Using Espresso 3.4.0 + core 1.4.1-alpha04 does not show obvious errors and does not run any tests #1315
Comments
There is a strict dependency from espresso 3.5.0-alpha04 -> androidx.test.core.1.4.1-alpha04 |
Argh, I think I see what happened. Due to https://issuetracker.google.com/127986458, we have Then, even though we have https://github.com/android/architecture-samples/pull/824/files solved that problem because it added |
ugh yes this situation has come up before. Unfortunately I cannot see a way of solving it on the androidx.test side, although it should be investigated why the error handling was so poor in this case. FWIW I'm a proponent of the self-instrumenting apks approach, as in theory such a configuration simplifies a lot of these weird edge cases and also might improve test performance. |
I had the same issue and when I attempt to run androidTest with debug I get this exception:
knowing that HiltInsturmentTestRunner extends AndroidJUnitRunner. |
Is there an update to this? |
A temporary solution for me was to completely ignore transitive dependencies coming from debugImplementation("androidx.fragment:fragment-testing:1.4.1") {
isTransitive = false
} This solution is easier to implement, especially when you have a large multi-modules build, since you don't "force" dependencies, you don't need to hardcode version numbers, or exclude specific artifacts like in #294 and #481. @GhiathAlbawab0 the issue you're having is the same, but coming from |
Description
Using Espresso 3.4.0 + core 1.4.1-alpha04 does not show obvious errors and does not run any tests
Steps to Reproduce
android/architecture-samples#820
./gradlew cC
Expected Results
Tests run
Actual Results
Starting 0 tests on Galaxy_Nexus_API_29(AVD) - 10
And what's worse: tests do not fail.
Fix: bump androidXTestCoreVersion to
1.4.1-alpha04
: https://github.com/android/architecture-samples/pull/824/filesThere should be a strict dependency between 1.4.1-alpha04 and espresso 3.5.0-alpha04
The text was updated successfully, but these errors were encountered: