How can I create tests in Android Studio?

后端 未结 12 2138
野的像风
野的像风 2020-11-27 10:38

Just downloaded Android Studio which is based off of the Intellij Idea.

How would one create tests?

I notice there is a option for create a Test Module but t

12条回答
  •  不知归路
    2020-11-27 11:16

    Android Studio v.2.3.3

    Highlight the code context you want to test, and use the hotkey: CTRL+SHIFT+T

    Use the dialog interface to complete your setup.

    The testing framework is supposed to mirror your project package layout for best results, but you can manually create custom tests, provided you have the correct directory and build settings.

提交回复
热议问题