How do I structure project test directory in Android Studio?

前端 未结 4 2036
迷失自我
迷失自我 2021-01-30 22:15

There is no convention for this yet, but how do I structure the test directory for Android Studio, now that what\'s stated on the Android testing fundamentals page differs?

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-30 22:26

    i have another way to solve this problem , if your reason just is the problem of run configuration.

    check your run configuration , if the configuration of your project is Android Tests but not Android Application and then you will face

    "Running tests
    Test running startedTest running failed: Unable to find instrumentation info for:ComponentInfo{/android.test.InstrumentationTestRunner}
    Empty test suite."
    

    so delete the Android Tests configuration and add a Android Application run configuration for your peoject ,you can run it .

提交回复
热议问题