-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
45 lines (36 loc) · 821 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'net.saliman:gradle-cobertura-plugin:2.2.2'
}
}
apply plugin: 'java'
apply plugin: 'cobertura'
apply plugin: 'eclipse'
repositories {
mavenCentral()
}
dependencies {
testCompile 'org.testng:testng:6.8.5',
'org.mockito:mockito-all:1.10.19',
'org.powermock:powermock-api-mockito:1.6.2',
'org.powermock:powermock-module-testng:1.6.2'
}
test {
useTestNG{
listeners << 'org.testng.reporters.XMLReporter'
suiteXmlBuilder().suite(name: 'all-tests-suite', parallel: 'tests') {
test (name : 'all-tests') {
packages {
'package' (name: 'net.saliman.gradle.cobertura.plugin.*')
}
}
}
}
}
cobertura {
coverageFormats = [ 'xml', 'html']
coverageIgnoreTrivial = true
}