Maverick
Maverick

Reputation: 394

Execute Junit and Android Test In Sequence

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?

Upvotes: 1

Views: 104

Answers (1)

Zufar Sunagatov
Zufar Sunagatov

Reputation: 1316

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'
}

Upvotes: 0

Related Questions