2016-05-20 7 views

答えて

4

あなたは、手順

ステップ1次でこれを行うことができます:スイートファイルを作成します

ステップ2:Gradleの

task runAParallelSuite(type: Test) { 
    def forks =2 
    exclude ('**/Library.java') 
    println "The Maximum parallel is $forks" 
    // uncomment maxParallelForks if you prefer to use the Gradle process forker 
    // which also requires a complete change of how the suite class works 
    maxParallelForks = forks 
    include '**/**TestSuite.class' 
    // testReportDir = file("${reporting.baseDir}/AParallelSuite") 
    // testResultsDir = file("${buildDir}/test-results/AParallelSuite") 
    // show standard out and standard error of the test JVM(s) on the console 
    testLogging.showStandardStreams = true 
} 

に、次のタスクコードを入力してください今CMDプロンプトでコマンドを実行します'gradle clean runAParallelSuite aggregate'

0

これを行う別の方法は次のとおりです。

test { 
     maxParallelForks=2 
     options { 
      systemProperties(System.getProperties()) 
     } 
     ... 
    } 

maxParallelForksは、jUnitと並行して実行する分岐テストプロセスの最大数を設定できます

関連する問題