Why is the Android test runner reporting “Empty test suite”?

前端 未结 30 2231
有刺的猬
有刺的猬 2020-11-28 07:59

I am banging my head against the wall here trying to figure out why IntelliJ/Android is reporting \"Empty test suite\". I have a small project with two IntelliJ Modules (\"

30条回答
  •  悲&欢浪女
    2020-11-28 08:34

    In my case that problem was caused due to mistake in my code, actually that was in application class, so target activity wasn't opened and test output prints

    Empty test suite error

    I have tried run tests directly from terminal with adb shell am instrument -w -r -e package your.package -e debug false android.support.test.runner.AndroidJUnitRunner. With this it prints for you much more about exception.

提交回复
热议问题