2017-07-24 19 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     
       } 
      }  
     } 
} 
解决方案
相关问题