How to access files from assets folder during tests execution?

后端 未结 8 2080
旧时难觅i
旧时难觅i 2021-02-01 20:25

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

8条回答
  •  抹茶落季
    2021-02-01 20:51

    Did you try placing the assets folder under main instead of androidTest?

    Also, are you using https://github.com/robolectric/robolectric-gradle-plugin to run your tests?

提交回复
热议问题