How to access files from assets folder during unit tests execution? My project is build using Gradle, I use Robolectric to run tests. It seems like gradle is being recognizing t
If you are using Kotlin, you can have something like this:
getInstrumentation().targetContext.assets.open("news.json")
instead of .context, you can simply use targetContext