2017-07-24 63 views

回答

1

這裏是我發現

// apply plugin 
apply "jacoco" 

jacocoTestCoverageVerification { 
     violationRules { 
      rule { 
       // this rule insure 50% of instructions have been tested 
       limit { 
        minimum = 0.5 
       } 
      } 
      rule { 
       // this rule insure all classes have been tested 
       limit { 
        counter = 'CLASS' 
        value = 'MISSEDCOUNT' 
        maximum = 0     
       } 
      }  
     } 
} 
解決方案
相關問題