Setting a custom assets directory for unit testing in Android Studio

后端 未结 4 1458
野的像风
野的像风 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:32

    I am using Android Studio 1.3 + Gradle 1.2.3 and src/androidTest/assets didn't work for me. I placed everything in src/debug without any changes to build.gradle and it worked. Android seemingly picks up up items from the debug folder automatically while building the apk.

提交回复
热议问题