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

前端 未结 30 2240
有刺的猬
有刺的猬 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条回答
  •  旧时难觅i
    2020-11-28 08:25

    None of the above fixed it for me. What helped was following the instructions:

    Create a test configuration

    In Android Studio:

    • Open Run menu -> Edit Configurations
    • Add a new Android Tests configuration
    • Choose a module
    • Add a specific instrumentation runner:

      android.support.test.runner.AndroidJUnitRunner

    Run the newly created configuration.

提交回复
热议问题