TestCase class not found by Android Studio

后端 未结 7 1708
刺人心
刺人心 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 18:04

    This issue is crazy, it just is. Don't overthink it.

    How I've fixed it (Win10) :

    1. Reboot (maybe not necessary)
    2. Try to Run test
    3. Try to Run with coverage

    It fixed it for me on Android Studio 3.6.3

    These two ways of running tests are different and this approach could fix the issue for you too.

提交回复
热议问题