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

前端 未结 30 2267
有刺的猬
有刺的猬 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:36

    Obviously, you need a target device as to run your tests as they are instrumented tests. For some reasons, Android studio sometimes does not ask you to point to this target device and just prompt the "Empty Test Suite" message. There are different ways to fix this, here are a few :

    • run your main app and select a target device or

    • go to the Run (Run/Run.../Edit Configurations) configuration and modify the Deployement Target Options

提交回复
热议问题