Shared Testing issue
from the CommonsWare Community archivesAt December 31, 2019, 1:50pm, Pvr asked:
While doing shared Testing, init() is not being called which is present in Library class
I used command : gradlew test
At December 31, 2019, 2:04pm, mmurphy replied:
Sorry, but:
-
I do not know what you mean by “shared testing”
-
I do not know where this
init()
is (other than “in Library class”, which does not tell me much) -
I do not know whether any code would normally be triggering
init()
At January 6, 2020, 6:46pm, Pvr replied:
How to perform testing on snackbar for text check in espresso
At January 7, 2020, 1:13am, mmurphy replied:
I do not do much Espresso testing, as I find the tests tend to be flaky.
You might try these:
At January 7, 2020, 8:26am, Pvr replied:
These haven’t worked for me .
Other than espresso is there any way to test Snackbar
At January 7, 2020, 11:57am, mmurphy replied:
I should have phrased my earlier comment as: I do not do much UI testing, as I find the tests tend to be flaky. I sincerely hope that Jetpack Compose improves this situation.
You are welcome to play around with https://medium.com/@baz8080/testing-snackbar-on-android-8fb634e682e3. I do not recall having UI-tested a Snackbar
, so I do not have a recipe for you. Sorry!
At January 7, 2020, 5:49pm, Pvr replied:
Okay no problem
I got the solution