diff options
Diffstat (limited to 'gradle/junit.gradle')
-rw-r--r-- | gradle/junit.gradle | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/gradle/junit.gradle b/gradle/junit.gradle deleted file mode 100644 index 44a463c7..00000000 --- a/gradle/junit.gradle +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | apply plugin: 'jacoco' | ||
2 | |||
3 | dependencies { | ||
4 | testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}" | ||
5 | testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}" | ||
6 | testImplementation "org.junit.jupiter:junit-jupiter-params:${junitVersion}" | ||
7 | testImplementation "org.hamcrest:hamcrest:${hamcrestVersion}" | ||
8 | testImplementation "org.mockito:mockito-core:${mockitoVersion}" | ||
9 | testImplementation "org.mockito:mockito-junit-jupiter:${mockitoVersion}" | ||
10 | } | ||
11 | |||
12 | def jacocoTestReport = tasks.named('jacocoTestReport') | ||
13 | jacocoTestReport.configure { | ||
14 | dependsOn test | ||
15 | reports { | ||
16 | xml.required = true | ||
17 | } | ||
18 | } | ||
19 | |||
20 | tasks.named('test') { | ||
21 | useJUnitPlatform { | ||
22 | excludeTags 'slow' | ||
23 | } | ||
24 | finalizedBy jacocoTestReport | ||
25 | } | ||
26 | |||
27 | tasks.register('slowTest', Test) { | ||
28 | useJUnitPlatform() | ||
29 | finalizedBy jacocoTestReport | ||
30 | } | ||