Android Studio单元测试Instantiating tests...一直无响应
ringa_lee
ringa_lee 2017-04-17 17:17:11
0
4
1109

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无果,求科普!

ringa_lee
ringa_lee

ringa_lee

reply all(4)
伊谢尔伦

It is recommended that you turn off Instant Run and the first two options

PHPzhong

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template