testing - Skip test for specific build variant in Android+Gradle? -


i have specific build variant used mock testing. i'd prefer not run unit tests against variant (but want run them against other variants). there way inform gradle skip unit testing specific variant?

in case wanted skip unit testing release variant. can achieved doing this:

gradle.taskgraph.usefilter { task ->     if (task.name.startswith("test") && task.name.contains("releaseunittest")) {         return false;     }      return true; } 

Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -