Execute Junit and Android Test In Sequence

68 views Asked by At

I'm trying to execute two test methods, one of which is a junit and the other is an Android Test in a sequential manner. The first junit test method will be executed, followed by an Android Test. I don't want to execute it manually, and is there any way to achieve this?

1

There are 1 answers

3
Zufar Sunagatov On

I consider Gradle build script would work for you. It can be used to specify the order in which the test methods should be executed:

test {
    include '**/JunitTest.class'
    include '**/AndroidTest.class'
}