Issue
My target is to add tests for newly added methods in Android Studio. For example I have class with three methods that already has tests. I add new two methods. How can Android studio generate (add) test only for newly added tests?
Solution
- Put your cursor on any public mehtod's name inside that class.
- See the yellow bulb on the left hand side and open the bulb options.
- Select Generate missed test methods.
- You can see the list of uncovered public methods and you can go forward and auto-generate your unit test templates for each of them. :))
Answered By - Supun Wijerathne
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.