Reputation: 5177
I am new to Android Instrumentation cases. i have been looking at the API samples and see that sometimes we use ActivityUnitTestCase and the ActivityInstrumentationTestCase2. What is the difference between the two ? When would we use one over the other ?
Upvotes: 22
Views: 3763
Reputation: 165
See the difference discussed here: http://www.vogella.com/articles/AndroidTesting/article.html#activity_testing
Key points:
Upvotes: 8
Reputation: 17095
ActivityInstrumentationTestCase2 class used for functional testing and ActivityUnitTestCase used for Unit testing an Activity.
Upvotes: 5