The solution, MultiApiRobolectricTestRunner will run the test class on several configurations of the API level,
The code should look like this:
@RunWith(MultiApiRobolectricTestRunner.class)
@Config(sdk = {20, 21, 22})
public class IntegrationTest {}
source
share