Skip to content

Commit 6b3f6ff

Browse files
committedOct 7, 2024··
chore: Update test suite registration
1 parent e3780e2 commit 6b3f6ff

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed
 

‎build.gradle.kts

+2-4
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,8 @@ subprojects {
6565

6666
testing {
6767
suites {
68-
configureEach {
69-
if (this is JvmTestSuite) {
70-
useJUnitJupiter(rootProject.libs.versions.junit)
71-
}
68+
val test by getting(JvmTestSuite::class) {
69+
useJUnitJupiter(rootProject.libs.versions.junit)
7270
}
7371
}
7472
}

‎gradle/libs.versions.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ woodstox = "7.0.0"
1818

1919
# testing
2020
assertj = "3.26.3"
21-
junit = "5.11.1"
21+
junit = "5.11.2"
2222
mockito = "5.14.1"
2323
mockito-kotlin = "5.4.0"
2424
sonarqube-orchestrator = "5.0.0.2065"
@@ -33,6 +33,7 @@ flr-xpath = { module = "com.felipebz.flr:flr-xpath", version.ref = "flr" }
3333
jackson = { module = "com.fasterxml.jackson.core:jackson-databind", version.ref = "jackson" }
3434
jackson-xml = { module = "com.fasterxml.jackson.dataformat:jackson-dataformat-xml", version.ref = "jackson" }
3535
jsoup = { module = "org.jsoup:jsoup", version.ref = "jsoup" }
36+
junit-bom = { module = "org.junit:junit-bom", version.ref = "junit" }
3637
mockito = { module = "org.mockito:mockito-core", version.ref = "mockito" }
3738
mockito-kotlin = { module = "org.mockito.kotlin:mockito-kotlin", version.ref = "mockito-kotlin" }
3839
woodstox = { module = "com.fasterxml.woodstox:woodstox-core", version.ref = "woodstox" }

‎sonar-zpa-plugin/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies {
2222

2323
testing {
2424
suites {
25-
val integrationTest by registering(JvmTestSuite::class) {
25+
register<JvmTestSuite>("integrationTest") {
2626
testType.set(TestSuiteType.INTEGRATION_TEST)
2727

2828
dependencies {

‎zpa-checks/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies {
1313

1414
testing {
1515
suites {
16-
val integrationTest by registering(JvmTestSuite::class) {
16+
register<JvmTestSuite>("integrationTest") {
1717
testType.set(TestSuiteType.INTEGRATION_TEST)
1818

1919
val downloadZipFile by tasks.creating(Download::class) {

0 commit comments

Comments
 (0)
Please sign in to comment.