Skip to content

Commit 1fea2a2

Browse files
committed
Fix test configuration
1 parent 3bb9c8d commit 1fea2a2

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

test.gradle

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@ test {
55
}
66

77
tasks.register('unitTest', Test) {
8-
group("verification")
8+
group = "verification"
9+
10+
testClassesDirs = sourceSets.test.output.classesDirs
11+
classpath = sourceSets.test.runtimeClasspath
912

1013
useJUnitPlatform {
1114
excludeTags "integration"
1215
}
1316
}
1417

1518
tasks.register('integrationTest', Test) {
16-
group("verification")
19+
group = "verification"
20+
21+
testClassesDirs = sourceSets.test.output.classesDirs
22+
classpath = sourceSets.test.runtimeClasspath
1723

1824
useJUnitPlatform {
1925
includeTags 'integration'
@@ -38,7 +44,7 @@ tasks.register('jacocoIntegrationTestReport', JacocoReport) {
3844
}
3945
}
4046

41-
tasks.register('testAndReport', Test) {
47+
tasks.register('testAndReport') {
4248
tasks.getByName('integrationTest').mustRunAfter('unitTest')
4349
dependsOn('unitTest', 'integrationTest', 'jacocoUnitTestReport', 'jacocoIntegrationTestReport')
4450
}

0 commit comments

Comments
 (0)