TestCase class not found by Android Studio

后端 未结 7 1705
刺人心
刺人心 2020-12-03 17:24

I have written a simple test case class and placed it in the default test directory for Android Studio: \"src/androidTest\". I\'ve created an Android Tests build configurati

7条回答
  •  一向
    一向 (楼主)
    2020-12-03 17:54

    You need to check "run" configuration.

    If you are going to run tests from androidTest folder, you should choose configuration under Android Instrumented Test, and not the junit.

    Run(Top tool window) / Edit configurations...

提交回复
热议问题