Reputation: 1040
I have written few Espresso tests and I want to run specific test when one flavor is selected. For example I have tests for Activity A and Activity B, but in one of my flavors I can't reach Activity B (the launching button is hidden), so my test for Activity B will fail. Is there any way to define which tests should be run when specific flavor is selected?
Upvotes: 4
Views: 3215
Reputation: 141
you can follow the instructions here http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Testing1
In general, the prefix of the test folder concat with the flavor name.
Upvotes: 2