Shared Testing issue

While doing shared Testing, init() is not being called which is present in Library class
I used command : gradlew test

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()

How to perform testing on snackbar for text check in espresso

I do not do much Espresso testing, as I find the tests tend to be flaky.

You might try these:

These haven’t worked for me .
Other than espresso is there any way to test Snackbar

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!

Okay no problem
I got the solution