We're using Robotium with the android.test.InstrumentationTestRunner
for our tests. Nevertheless we want to replace Robotium for Espresso, but we still have some doubts about it, since we have a machine with Jenkins for the CI.
Espresso uses the android.support.test.runner.AndroidJUnitRunner
while Robotium uses the aforementioned and first, we would like to be able to use both testing frameworks at the same time.
Is it possible? How can we specify that in the build.gradle
file? How can we configure our jenkins machine to have different jobs for the different testing frameworks?
I understand it is possible to have Espresso extend the ActivityInstrumentationTestCase2
, since our Robotium test classes also use a test runner which extends from ActivityInstrumentationTestCase2
, but we still need to tackle the problem of the instrumentation test runner.