Created
August 17, 2018 07:51
-
-
Save KrishnB/6a67bb9f96b11df50cccea39e34dac6f to your computer and use it in GitHub Desktop.
Fragmentation task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def runDeviceFragmentation(List<String> udidList) { | |
def size = udidList.size() | |
println "Total devices -- " + size | |
GParsPool.withPool(size) { | |
udidList.eachParallel { String udid -> | |
project.javaexec { | |
main = "cucumber.api.cli.Main" | |
classpath = optimusExtension.classpath | |
args = ["-p", "pretty", "-p", ("json:${reportingExtension.baseDir}/cucumber/" + updateReportFileName(udid) + ".json"), "--glue", "steps", "-t", "@sampleTag", | |
"${project.projectDir}/src/test/resources/features"]; | |
ignoreExitValue = true | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment