daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Feb 15th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. task runFragmentation() {
  2.     doLast {
  3.         def devices = getDevices()
  4.         def poolSize = devices.size()
  5.         println "Total number of connected device -- " + poolSize
  6.         GParsPool.withPool(poolSize) {
  7.             devices.eachParallel { String device ->
  8.                 javaexec {
  9.                     ignoreExitValue = false
  10.                     main = "cucumber.api.cli.Main"
  11.                     classpath = sourceSets.test.runtimeClasspath
  12.                     args = getArgsForFragmentation(device)
  13.                     systemProperties = [
  14.                             "testFor": System.getProperty("testFor"),
  15.                             "udid"   : System.setProperty("udid", device)
  16.                     ]
  17.                 }
  18.             }
  19.         }
  20.     }
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top