Android gradle test only one flavor

android, gradle

Solution

`./gradlew connected[Flavor]DebugAndroidTest`

Problem

I've currently set my TeamCity instance to run `connectedCheck` on all my Android-projects. This is fine, all tests run and everything is good. Except, connectedCheck runs all tests for all product flavors. I currently have a lot of flavors, so this is wasted work for my projects as I do not really have any different code in the flavors. Any idea how I can make `connectedCheck` only run for one flavor?

Original source

Related problems