I have solved a topCoder problem for which all the tests pass when I run them on their own. Nonetheless when I run the whole test class some of them fail. Could you, please,
Since I am opening the same activity under test in many test cases executed one after another and same IntentsTestRule class activity
I could resolve the issue in my case by calling finishActivity on activityTestRule class and intentTestRule class
eg:
@After
fun method() {
mainActivityTestRule.finishActivity()
mIntentsRule.finishActivity()
}