Android Studio2.1.1正式版,进行单元测试,在自带的ApplicationTest类下添加下列代码
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
public void testMethod1(){
Log.d("Me", "加油吧");
}
}
运行一直陷入Instantiating tests...等待状态,光圈一直在转,绿色进度条不动,运行效果如下
google无果,求科普!
It is recommended that you turn off Instant Run and the first two options
http://stackoverflow.com/questions/35496117/android-tests-often-stall-at-instantiating-tests
http://stackoverflow.com/questions/30437224/why-is-android-studio-instantiating-tests-each-time
Young man, in addition to google, why don’t you go to sof and see if the answers here are helpful to you
Uncheck all options of Instant Run and run it again. It can be used for personal testing.
It’s probably a bug in this version. It’s closed