aboutsummaryrefslogtreecommitdiffstats
path: root/gradle/junit.gradle
blob: 3f3970d91db84591ef8980698b0e2df33f831b50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
apply plugin: 'jacoco'

dependencies {
	testCompile "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
	testRuntime "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
	testCompile "org.junit.jupiter:junit-jupiter-params:${junitVersion}"
	testCompile "org.hamcrest:hamcrest:${hamcrestVersion}"
}

test {
	useJUnitPlatform {
		excludeTags 'slow'
	}
}

task slowTest(type: Test) {
	useJUnitPlatform()
}

test.finalizedBy(jacocoTestReport)
jacocoTestReport.dependsOn(test)