Setting a custom assets directory for unit testing in Android Studio

后端 未结 4 1518
野的像风
野的像风 2021-02-02 08:24

We have the not uncommon requirement of executing unit tests of our Android application which make use of assets which are only required for unit testing.

With the Eclip

4条回答
  •  感动是毒
    2021-02-02 08:57

    I don't know how it was before, but I was able to create Android instrumented unit tests where I can read test assets or production assets. See this answer for more info.

提交回复
热议问题