How to run a simple JUnit4 test in Android Studio 1.1?

后端 未结 4 1715
面向向阳花
面向向阳花 2020-12-14 02:12

I have an Android project that shows \"Hello World\". It was created from the \"Blank Activity\" template from Android Studio.

I then add/create a new java class in

4条回答
  •  攒了一身酷
    2020-12-14 02:54

    For android studio 1.2 or greater, I include this answer since this is one of the first ranking at google and this is an excelent and VERY easy to follow tutorial on how to set unit tests with Android Studio, this is the link: https://io2015codelabs.appspot.com/codelabs/android-studio-testing#1

    After wasting 2 hours trying to run test I finally did it with the above link, hope it is as useful for you as for me.

提交回复
热议问题