I'm trying to search for an example of how to run a tests suite for test classes that use Robolectric, for example I have this class:
@Config(sdk = 16, manifest = "src/main/AndroidManifest.xml")
@RunWith(RobolectricTestRunner.class)
public class RestaurantModelTest {
//setUp code here...
@Test
public void testFindByLocation() throws Exception {
//test code here
}
}
All unit test and assertions of class RestaurantModelTest
are passing, but I also have another class lets call it XModelTest
(in which all assertions and unit test are passing.
My problem
I don't find any tutorial/example of how to use a test suite using robolectric.
Should this be done in the same package where my RestaurantModelTest and XModelTest are? If not where?
Also I tried doing this with TestSuite from JUnit but many questions arise should the class with my TestSuite extend extends TestSuite super class?
If someone can give me a short example using my RestaurantModelTest
and XModelTest
classes it would be great.