I have created a RoboElectric test class which i would like to run multiple times,
each time changing the @Config(sdk = Build.VERSION_CODES.{code}) sdk parameter,
Any ideas on how to make this happen without creating new test classes ?
Found the solution, MultiApiRobolectricTestRunner will run the test class on multiple API level configurations,
The code should look like this:
@RunWith(MultiApiRobolectricTestRunner.class)
@Config(sdk = {20, 21, 22})
public class IntegrationTest {}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With