Reputation: 5233
I work with android studio and I remember that I saw in some video tutorial short way to create test class.
It looked like you just put mouse on name of class, right click and something like create a test
and then pop up where you can choose version of JUnit 3/4 and components which have to be included immideatly to new test class.
But I don't remember where is this button Create test class
Could you please give me a hint
Thanks in advance!
Upvotes: 0
Views: 492
Reputation: 6839
There is Ctrl-Shift-T
hotkey or you can use the main menu Navigate-Test
.
Upvotes: 0
Reputation: 5233
Eventually I found this keys, you requer to put mouse on the name of class that you need to get autogenerated test class
and than click Alt + Enter
There is a very good short video tutorial
https://www.youtube.com/watch?v=ZJE0MDKJOow
Upvotes: 0